moaazsidat / react-native-qrcode-scanner

A QR code scanner component for React Native.
MIT License
2.04k stars 517 forks source link

Unable to use QRCodeScanner #392

Open yaelWithY opened 2 years ago

yaelWithY commented 2 years ago

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 commented 2 years ago

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

sam9010 commented 2 years ago

I have this same problem

sam9010 commented 2 years ago

@yaelWithY did you fix it?

yaelWithY commented 2 years ago

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

sam9010 commented 2 years ago

@yaelWithY I used this https://github.com/moaazsidat/react-native-qrcode-scanner/issues/384#issuecomment-1285600911 was ok

yaelWithY commented 2 years ago

@sam9010 Thanks i will try it :)

yaelWithY commented 2 years ago

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

sam9010 commented 2 years ago

@yaelWithY your welcome... <3

BraveEvidence commented 1 year ago

This will help you https://www.youtube.com/watch?v=sE0MEyFA7E4&list=PLQhQEGkwKZUrempLnmxjt7ZCZJu1W3p2i&index=10