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

QR Scanning

Open rahulshah007 opened this issue 6 years ago • 6 comments

What's happening?

When I try to scan qr code I m not able to read any qrcode any solution

How can it be reproduced?

<QRCodeScanner onRead={this.onSuccess.bind(this)} topContent={ <Text style={styles.centerText}> HOME </Text> } bottomContent={ <TouchableOpacity style={styles.buttonTouchable}> <Text style={styles.buttonText}>WELCOME</Text> </TouchableOpacity> } />

Build details?

OS ANDROID "react": "16.3.1", "react-native": "0.55.1", "react-native-camera": "^1.0.3", "react-native-qrcode-scanner": "^1.0.1"

rahulshah007 avatar Apr 09 '18 09:04 rahulshah007

+1 to this problem

I am running on debug mode on Android. On iOS, it auto scanned right away when qr code is present within the view. But this doesn't work on android. I can't get any qr code to scan on android. Any help is appreciated.

Thanks

JakeRawr avatar Jul 31 '18 00:07 JakeRawr

I just had to upgrade to v1.0.3 from v1.0.1. That'll solve it

Update: I updated React Native camera from v1.0.1 to v1.0.3. Not the React Native qr scanner.

JakeRawr avatar Jul 31 '18 05:07 JakeRawr

@JakeRawr How did you upgrade to V1.0.3? I'm facing this issue when i tried doing the same.

No matching version found for [email protected]

karthick-t2s avatar Jul 31 '18 09:07 karthick-t2s

@karthick-t2s Hey sorry for misleading you. I updated React Native camera from v1.0.1 to v1.0.3. Not react native qr scanner. I’ll update my solution as well. Hope that helps you.

JakeRawr avatar Jul 31 '18 09:07 JakeRawr

@JakeRawr that's fine. I'm using react native camera V1.1.4 and the scanning takes too long and sometimes it won't scan at all.

karthick-t2s avatar Jul 31 '18 09:07 karthick-t2s

I've found that running on the device works perfectly on both Android and iOS but running in the android emulator doesn't scan the QR code correctly.

Really no idea how to debug it, it simply reads nonsense from the qr code as presented.

wadtech avatar Feb 18 '19 10:02 wadtech