I'm looking for a solution on react-native-camera library's barcode scanner bug. It simply works well on Android but not even triggered the scanner function on iOS.
Here is the reproducible code:
import { RNCamera } from "react-native-camera";
<RNCamera
ref={(ref) => {
this.camera = ref;
}}
style={{ flex: 1, width: "100%" }}
type={RNCamera.Constants.Type.back}
onGoogleVisionBarcodesDetected={this.barcodeRecognized}
/>
barcodeRecognized = ({ barcodes }) => {
alert("Barcodes: ", barcodes);
}
Versions
- iOS: 13.3.1
- react-native-camera: 3.31.0
- react-native: 0.61.5
- react: 16.12.0
- react-navigation: 4.0.10
Also, Github Issue