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

no camera image in viewfinder on react-native 0.29 #39

Closed ThaJay closed 7 years ago

ThaJay commented 8 years ago

It all worked on react-native 0.28 Just upgraded to 0.29 and the viewfinder is gone. If I set a absolute width / height and all I see is a red outline.

ackdav commented 8 years ago

check your version with 'react-native-barcodescanner' with npm list... sounds like the same issue i just closed

ThaJay commented 8 years ago
$ npm list grep react-native-barcodescanner
appname@0.0.1 /home/dev/app
└── react-native-barcodescanner@3.0.0 
ackdav commented 8 years ago

ok.. what is the remote debugger saying?

ThaJay commented 8 years ago

no errors. I encountered this when looking into your issue. Went back to rn 28 to be able to continue my work.

matb33 commented 8 years ago

The instructions need to be updated... The part that tells you to add new BarcodeScannerPackage() to MainActivity.java should instead go in MainApplication.java (with the relevant import statement)

ThaJay commented 8 years ago

okay thanks. :) What do we need to have rnpm pick up on this? or do they have to update?

aakashsigdel commented 8 years ago

I am having this issue on 0.28. npm list shows react-native-barcodescanner@3.0.0

When I do viewFinderShowLoadingIndicator={true}, it gives me a warning ProgressBarAndroid is deprecated and keeps showing the progress bar and the view finder doesn't load.

andreaskeller commented 7 years ago

@ThaJay @matb33 I updated the instructions for react-native 0.29. With react-native 0.29.2 react-native link (rnpm) works with MainApplication.java.

andreaskeller commented 7 years ago

@aakashsigdel version 3.1.1 uses ActivityIndicator instead of ProgressBarAndroid.