react-native-qrcode-scanner
react-native-qrcode-scanner copied to clipboard
Reactive Time Out Not Work
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}
Will accept PRs fixing this.
still doesn't work..
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?
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 }}>
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}
/>