moaazsidat / react-native-qrcode-scanner

A QR code scanner component for React Native.
MIT License
2.04k stars 516 forks source link

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

Open mamahui opened 2 years ago

mamahui commented 2 years ago

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 (

{ 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={
      }
      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