moaazsidat / react-native-qrcode-scanner

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

Camera IOS is black #360

Open lamlengend98 opened 2 years ago

lamlengend98 commented 2 years ago

My Camera is sometimes appearred, sometimes not, permission camera is granted on my IOS device somebody helps me this case

"react-native-qrcode-scanner": "^1.5.4" "react-native-permissions": "^3.0.5" "react-native-camera": "^4.2.1" "react-native": "0.64.0"

     <QRCodeScanner
        containerStyle={styles.containerStyle}
        cameraStyle={[styles.cameraStyle]}
        markerStyle={{
          borderColor: '#fff',
          height: scale(200),
          width: scale(200),
        }}
        reactivate={true}
        showMarker={true}
        onRead={onSuccess}
        cameraType="back"
        topContent={
          <Text style={styles.centerText}>
            Go to{' '}
            <Text style={styles.textBold}>wikipedia.org/wiki/QR_code</Text> on
            your computer and scan the QR code.
          </Text>
        }
        bottomContent={
          <Touchable style={styles.buttonTouchable}>
            <Text style={styles.buttonText}>OK. Got it!</Text>
          </Touchable>
        }
      />
luan-nvg commented 2 years ago

same problem, android works, ios doesn't

BraveEvidence commented 1 year ago

This will help you https://www.youtube.com/watch?v=sE0MEyFA7E4&list=PLQhQEGkwKZUrempLnmxjt7ZCZJu1W3p2i&index=10