I am trying to create a QR code scanner using react native library barcode-scanner-google
But facing black screen issue. It is also an open GitHub issue.
Anyone please help here to resolve.
I found this is specific to some android versions and devices. Please find below some devices with OS details where this issue replicate.
- Android Version: 6.0.1 Redmi Note 3
- Android Version: 7.1.1 (Unstable version & rooted mobile with cyanogen nightly14.1)
- Android Version: 7.0.0 (Lenovo K6 Power)
If the issue is that when they hit 'back' it makes the camera screen black you can add a listener for that screen to pop to previous screen using the
backHandler
. More info here - https://facebook.github.io/react-native/docs/backhandler.html