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

Android Debug Mode: Can't read QR code

Open Vanclief opened this issue 6 years ago • 14 comments

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

Vanclief avatar Jan 26 '19 16:01 Vanclief

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

glevymayo avatar Jan 26 '19 17:01 glevymayo

Edit: Clarified it happens on debug mode

Vanclief avatar Jan 26 '19 23:01 Vanclief

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

NathanDsouza avatar Jan 31 '19 19:01 NathanDsouza

+1

marshallcool avatar Feb 23 '19 18:02 marshallcool

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

pawankhadpe avatar Feb 28 '19 12:02 pawankhadpe

Same thing here. Any updates on this?

mtnptrsn avatar Mar 03 '19 19:03 mtnptrsn

same problem

rey1024 avatar Mar 08 '19 08:03 rey1024

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

michal-perlakowski avatar Apr 24 '19 09:04 michal-perlakowski

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

moaazsidat avatar May 02 '19 17:05 moaazsidat

@Gothdo this did not solve the issue

ilariowiz avatar May 09 '19 07:05 ilariowiz

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

michal-perlakowski avatar May 09 '19 21:05 michal-perlakowski

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

e6a5 avatar May 23 '19 07:05 e6a5

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

Nagibaba avatar Aug 05 '19 14:08 Nagibaba

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

renaldy84 avatar Oct 23 '19 02:10 renaldy84