react-qr-reader icon indicating copy to clipboard operation
react-qr-reader copied to clipboard

Stop scanning

Open samaneh-kamalian opened this issue 3 years ago • 1 comments

First, I initiate react-qr-reader with delay 3000. when user scan a code, I setState this delay to false to stop scanning and showing a dialog to user. when user press ok button in dialog, scanning qrcode must started again but the problem is that while dialog is open(and delay at this time is false), the scanning is done! But after two consecutive scans, the scan is no longer performed until the user presses the OK button. The problem is only the beginning I checked my code a lot and there is a simple code. Isn't this a problem with your library?

samaneh-kamalian avatar Nov 01 '21 19:11 samaneh-kamalian

First, I initiate react-qr-reader with delay 3000. when user scan a code, I setState this delay to false to stop scanning and showing a dialog to user. when user press ok button in dialog, scanning qrcode must started again but the problem is that while dialog is open(and delay at this time is false), the scanning is done! But after two consecutive scans, the scan is no longer performed until the user presses the OK button. The problem is only the beginning I checked my code a lot and there is a simple code. Isn't this a problem with your library?

Any solution? I really stopped on it

samaneh-kamalian avatar Nov 02 '21 05:11 samaneh-kamalian