moaazsidat / react-native-qrcode-scanner

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

QR Scanning #85

Open rahulshah007 opened 6 years ago

rahulshah007 commented 6 years ago

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

HOME
    }
    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"

JakeRawr commented 6 years ago

+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 commented 6 years ago

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 commented 6 years ago

@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 commented 6 years ago

@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 commented 6 years ago

@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 commented 5 years ago

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.