ideacreation / react-native-barcodescanner

A barcode scanner component for react native - not maintained anymore - use react-native-camera
MIT License
537 stars 162 forks source link

Warning: Native component for "RNBarcodeScannerView" does not exist #45

Open fgrs opened 8 years ago

fgrs commented 8 years ago

this is similar if not the same to #38 but still applies to my project, tried rnpm link it says Android module react-native-barcodescanner is already linked also I removed android folder and run react-native run-android, still getting this error

react: 15.2.1, react-native: 0.30.0, react-native-barcodescanner: 3.0.1

fgrs commented 8 years ago

looks like MainApplication.java is not getting updated after rnpm link

andreaskeller commented 7 years ago

@fgrs did you solve your problem? maybe you are using an older version of rnpm? with recent react-native versions you can also just run react-native link instead of rnpm link.

jmdelatorre commented 7 years ago

Hi @fgrs where you able to fix this problem?

henninghall commented 7 years ago

@jmdelatorre as @fgrs says the problem seems to be in MainApplication.java. I did a manual linking which meant adding "new BarcodeScannerPackage()" to MainApplication.java and the problem was fixed.

teemobk commented 6 years ago

Hi @jmdelatorre @fgrs @andreaskeller @henninghall : I did manual linking, but still getting this error: Warning: PropTypes has been moved to a separate package. Accessing React.PropTypes is no longer supported and will be removed completely in React 16. Use the prop-types package on npm instead. Warning: Native component for "RNBarcodeScannerView" does not exist Where you able to fix this problem? Thanks

andreaskeller commented 6 years ago

I'm sorry but this component is no longer maintained. Try react-native-camera as a replacement.