Barcode don't work on specific device: motorola moto g(9) play. Android 11
Describe the bug onReadCode is not detecting reads on specific model motorola moto g(9) play. Android 11 This bug only happen in this device model. In a large number of devices including ios and android it's ok.
To Reproduce Steps to reproduce the behavior:
Just render a common camera component and wait for the bar code read.
<CameraScreen
scanBarcode={true}
onReadCode={(event) => console.log(event.nativeEvent.codeStringValue)}
showFrame={true}
laserColor='red'
frameColor='white'
/>
Expected behavior Detect the barcode read on all kinds of devices
** The output of: npx @react-native-community/cli doctor
Common ✓ Node.js ✓ yarn
- Version found: 2022.03.14.00
- Version supported: 4.x
Android ✓ JDK ✓ Android Studio - Required for building and installing your app on Android ✓ Android SDK - Required for building and installing your app on Android ✓ ANDROID_HOME
iOS ✓ Xcode - Required for building and installing your app on iOS ✓ CocoaPods - Required for installing iOS dependencies ✓ ios-deploy - Required for installing your app on a physical device with the CLI
Smartphone:
- Device: motorola moto g(9) play.
- Camera: fron:t 8MP / back: 48MP + 2MP + 2MP (don't work in both)
- OS: android 11
- react-native: 0.66.4
- react-native-chart-kit: 6.11.0
I have managed to fix this issue. The PR is here: https://github.com/teslamotors/react-native-camera-kit/pull/465