react-native-qrcode-scanner icon indicating copy to clipboard operation
react-native-qrcode-scanner copied to clipboard

Invariant Violation: View config getter callback for component `AndroidProgressBar` must be a function (received `undefined`).

Open mamahui opened this issue 2 years ago • 0 comments

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

image

mamahui avatar Nov 09 '22 02:11 mamahui