Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Unable to use QRCodeScanner #392

Open
yaelWithY opened this issue Nov 3, 2022 · 9 comments
Open

Unable to use QRCodeScanner #392

yaelWithY opened this issue Nov 3, 2022 · 9 comments

Comments

@yaelWithY
Copy link

hello,
I'm trying to use this library in my project but when i import QRCodeScanner it shows three errors:

ERROR : Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'., js engine: hermes

ERROR : Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 10): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient.
A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes

ERROR : Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 10): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient.
A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes

i have try everything i could and i have react-native-vision-camera install, but nothing works.
i hope anyone can help me, Thanks.

@Czino
Copy link

Czino commented Nov 10, 2022

Same issue for me, I think it's the react-native-camera dependency that is not compatible with the latest react native versions

@sam9010
Copy link

sam9010 commented Nov 14, 2022

I have this same problem

@sam9010
Copy link

sam9010 commented Nov 14, 2022

@yaelWithY did you fix it?

@yaelWithY
Copy link
Author

@sam9010 i couldn't fix it so i changed the library to react-native-camera-kit

@sam9010
Copy link

sam9010 commented Nov 14, 2022

@yaelWithY I used this #384 (comment) was ok

@yaelWithY
Copy link
Author

@sam9010 Thanks i will try it :)

@yaelWithY
Copy link
Author

@sam9010 I tried what you told me and it works!! thank you very much <3

@sam9010
Copy link

sam9010 commented Nov 16, 2022

@yaelWithY your welcome... <3

@BraveEvidence
Copy link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants