Raas
Raas

Reputation: 1

invariant violation: requirenativecomponent: "rncamera" was not found in the uimanager

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

Answers (2)

Taimoor Tahir
Taimoor Tahir

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

Junaid Khattak
Junaid Khattak

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

Related Questions