moaazsidat / react-native-qrcode-scanner

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

Android Debug Mode: Can't read QR code #170

Open Vanclief opened 5 years ago

Vanclief commented 5 years ago

On android and while on debug mode, qr codes will not be recognized so the onRead function will not be triggered.

What's happening?

Sometimes the package on android debug mode works perfectly, sometimes it does not scan any qr code at all.

How can it be reproduced?

  1. Start react native project (No expo)
  2. Add react-native-qrcode-scanner to a view
  3. Go to https://en.wikipedia.org/wiki/QR_code
  4. Attempt to scan the code

Build details?

OS: Android Package version: 1.1.0

glevymayo commented 5 years ago

Same to me. It works only the first time I launch the app. I'm using Genymotion.

Vanclief commented 5 years ago

Edit: Clarified it happens on debug mode

NathanDsouza commented 5 years ago

This also happens to be when I'm not on debug mode

marshallcool commented 5 years ago

+1

pawankhadpe commented 5 years ago

+1.I am not able to scan QR code in debug mode.

mtnptrsn commented 5 years ago

Same thing here. Any updates on this?

rey1024 commented 5 years ago

same problem

michal-perlakowski commented 5 years ago

npm i -S react-native-camera@1 fixed this for me.

moaazsidat commented 5 years ago

so needs an update of the dependencies? if so, accepting PRs that fixes it.

Ilario17 commented 5 years ago

@Gothdo this did not solve the issue

michal-perlakowski commented 5 years ago

@Ilario17 Are you sure you installed version 1.x of react-native-camera? The @1 part is important.

e6a5 commented 5 years ago

Any updates for this one? I have the same problem with RN 0.59.8

Nagibaba commented 5 years ago

try to add reactivateTimeout={300}. Worked for me, although it doesn't make sense

renaldy84 commented 5 years ago

@Nagibaba works for me as well. and yes it doesn't make sense.