react-native-qrcode-scanner
react-native-qrcode-scanner copied to clipboard
Invariant Violation: View config getter callback for component `AndroidProgressBar` must be a function (received `undefined`).
Invariant Violation: View config getter callback for component AndroidProgressBar must be a function (received undefined).
What's happening?
when i use this package, i can't use it when i Authorized camera
How can it be reproduced?
` import QRCodeScanner from 'react-native-qrcode-scanner'; import {RNCamera} from 'react-native-camera';
return ( <View> <QRCodeScanner showMarker ref={node => { scannerRef.current = node; }} containerStyle={{ flexDirection: 'column', alignItems: 'center', justifyContent: 'center', }} permissionDialogTitle="获取相机权限" permissionDialogMessage="需要获取相机权限进行扫码" buttonPositive="允许" bottomContent={ <View style={styles.buttonTouchable}> <Text style={styles.buttonText}> 请扫描学生二维码登录答题界面 </Text> </View> } cameraContainerStyle={{ width: scaleSizeW(326), height: scaleSizeW(326), overflow: 'hidden', }} cameraStyle={{ width: scaleSizeW(326), height: scaleSizeW(326), alignSelf: 'center', justifyContent: 'center', }} customMarker={ <View style={{ width: scaleSizeW(326), height: scaleSizeW(326), }}> <Image source={qrcodeBorder} style={styles.qrcodeBorder} /> <Animated.View style={[ styles.spreadLine, { transform: [{translateY: top}], }, ]} /> </View> } onRead={onSuccess} flashMode={RNCamera.Constants.FlashMode.auto} /> </View> `
Build details?
my project info
"react-native-qrcode-scanner": "^1.5.5", "react-native": "0.69.2", react-native info
