Hi there,
I just upgraded from sdk 23 to 27.
The app uses BarCodeScanner, as i’m testing on expo on iPhone 6+ (11.3.1) and Huawei P20 (Android 8.1.0), the iOS works just fine as before but the android doesnt seem to work (cant scan anything).
I put in some console logs in onCameraReady and find only the iOS calls it, and the android one never does. Im guessing thats why it cant scan anything.
<View style={styles.camera}>
<BarCodeScanner
type={this.props.cameraFace}
onBarCodeRead={this._handleBarCodeRead}
autoFocus={Camera.Constants.AutoFocus.on}
focusDepth={1}
barCodeTypes={[Camera.Constants.BarCodeType.qr]}
onCameraReady={this._cameraReady}
style={{
height: Dimensions.get('window').height,
width: Dimensions.get('window').width,
}}
/>
</View>
Any ideas?
Edit:
Tested on Samsung Galaxy S9+ (8.0.0), no problems. hmmmm
Tested on another Huaweu phone, 8.0.0 also, no problems.
Must be an 8.1.0 issue? Need to test on non Huawei 8.1.0 phones