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

Reactive Time Out Not Work

Open khrisnaars opened this issue 4 years ago • 5 comments

Im use reactive time out and not work when i set the time

below is my qrcodescanner attribute,and how i can reactive it manualy i try to set state on reactive but didnt work

    onRead={this.barcodeRecognized}
    flashMode={RNCamera.Constants.FlashMode.auto}
    reactivate={true}
    showMarker={true}
    reactivateTimeout={5}
    markerStyle={Styles.marker}
    checkAndroid6Permissions={checkAndroidPermission}
  

khrisnaars avatar Dec 11 '19 10:12 khrisnaars

Will accept PRs fixing this.

moaazsidat avatar Jan 24 '20 13:01 moaazsidat

still doesn't work..

acerbastimur avatar Feb 03 '20 22:02 acerbastimur

the reactivateTimeout prop seems to be working fine in the latest version. so, can you both (@acerbastimur and @khrisnaars) describe a little better what is actually happening in the unexpected behavior that you guys are facing on?

by the way, what's the version that you both are using?

renatobenks avatar May 06 '20 17:05 renatobenks

yeah, it is not working as intended, like no matter how big is the timeout you set, it will reactivate right after scanning a code

<QRCodeScanner reactivateTimeout={20000} ref={(node) => { this.scanner = node }}>

valn1 avatar Feb 18 '21 12:02 valn1

I had the same Issue, but with an upgrade to 1.5.3 the Problem was solved and the timeout is now working correctly.

 <QRCodeScanner
  onRead={(e) => onScan(e)}
  reactivate={true}
  reactivateTimeout={2000}
  />

MarcelSchmidberger avatar Apr 03 '21 15:04 MarcelSchmidberger