Reputation: 1
In react native I want to add a barcode scanner and take a picture on my app but I am running in to the following error:
invariant violation: requirenativecomponent: "rncamera" was not found in the uimanager.
When barcode component view opens.
react-native-camera 3.3.0
react-native sdk-32 (expo)
Upvotes: 0
Views: 3930
Reputation: 87
you will most likely have to eject to native code out of expo because any third party package that asks you to run the command "react-native link" as part of the setup process is strictly to be used with pure react native app. hope that helps
Upvotes: 1
Reputation: 21
Had the same problem with react-native-camera, rebuild(react-native run-android) fixed the problem. I have noticed that similar issues with other libs as well. I think linking sometimes doesn't properly take affect with just reloading
Upvotes: 1