Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

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

Open
mamahui opened this issue Nov 9, 2022 · 0 comments

Comments

@mamahui
Copy link

mamahui commented Nov 9, 2022

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 (

<QRCodeScanner
showMarker
ref={node => {
scannerRef.current = node;
}}
containerStyle={{
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
}}
permissionDialogTitle="获取相机权限"
permissionDialogMessage="需要获取相机权限进行扫码"
buttonPositive="允许"
bottomContent={


请扫描学生二维码登录答题界面


}
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),
}}>

<Animated.View
style={[
styles.spreadLine,
{
transform: [{translateY: top}],
},
]}
/>

}
onRead={onSuccess}
flashMode={RNCamera.Constants.FlashMode.auto}
/>

`

Build details?

my project info

"react-native-qrcode-scanner": "^1.5.5",
"react-native": "0.69.2",
react-native info

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant