react-native-qrcode-scanner
react-native-qrcode-scanner copied to clipboard
Camera IOS is black
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>
}
/>
same problem, android works, ios doesn't
This will help you https://www.youtube.com/watch?v=sE0MEyFA7E4&list=PLQhQEGkwKZUrempLnmxjt7ZCZJu1W3p2i&index=10