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

QR Scanning #85

Open
rahulshah007 opened this issue Apr 9, 2018 · 6 comments
Open

QR Scanning #85

rahulshah007 opened this issue Apr 9, 2018 · 6 comments

Comments

@rahulshah007
Copy link

rahulshah007 commented Apr 9, 2018

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 rahulshah007 changed the title Scanning OR Scanning Apr 9, 2018
@rahulshah007 rahulshah007 changed the title OR Scanning QR Scanning Apr 9, 2018
@JakeRawr
Copy link

+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
Copy link

JakeRawr commented Jul 31, 2018

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.

@karthick-t2s
Copy link

karthick-t2s commented Jul 31, 2018

@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 react-native-qrcode-scanner@1.0.3

@JakeRawr
Copy link

@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.

@karthick-t2s
Copy link

@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.

@wadtech
Copy link

wadtech commented Feb 18, 2019

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.

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

No branches or pull requests

5 participants