ekreutz / react-native-barcode-scanner-google

Barcode scanner for react native, which implements barcode detection from Google's Vision API.
MIT License
113 stars 69 forks source link

App is crashing with 'Could not find requested camera' #32

Open mathanpec opened 6 years ago

mathanpec commented 6 years ago

Thanks for this awesome module. This works way faster than other modules available.

But in few of the mobiles we are getting a crash saying

java.lang.RuntimeException: Could not find requested camera. AndroidRuntime: at com.ekreutz.barcodescanner.camera.CameraSource.createCamera(CameraSource.java:777) AndroidRuntime: at com.ekreutz.barcodescanner.camera.CameraSource.start(CameraSource.java:404)

Any help here is much appreciated!