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

qrcodeScannerRef.current.reactivate() does not woking

Open chukiatt opened this issue 3 years ago • 2 comments

const PosBarcodeScan = React.forwardRef(({ onBarcodeScanned, onDismiss }, ref) => { // /** call from outer with {ref} */ useImperativeHandle(ref, () => ({ reactivate: () => { qrcodeScannerRef.current.reactivate(); }, }));

})

What's happening?

qrcodeScannerRef.current.reactivate()

How can it be reproduced?

Build details?

chukiatt avatar Mar 18 '22 15:03 chukiatt

Will accept PRs fixing the issue, thanks!

moaazsidat avatar Mar 24 '22 14:03 moaazsidat

I'm wondering if this could the cause of an issue I am seeing

QRScanner is working fine for the 1st scan. User then moves onto other screens. If the user needs to perform a new scan but has NOT restarted the app then all they get is a white screen when the app navigates back to the screen that renders the QRSCanner. If app has been restarted then the QRScanner works perfectly

markl-vesper avatar Jul 08 '22 01:07 markl-vesper