Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

qrcodeScannerRef.current.reactivate() does not woking #376

Open
chukiatt opened this issue Mar 18, 2022 · 2 comments
Open

qrcodeScannerRef.current.reactivate() does not woking #376

chukiatt opened this issue Mar 18, 2022 · 2 comments
Labels
plus: good first issue type: bug Issues or pull requests that are unexpected behaviour

Comments

@chukiatt
Copy link

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?

@moaazsidat moaazsidat added type: bug Issues or pull requests that are unexpected behaviour plus: good first issue labels Mar 24, 2022
@moaazsidat
Copy link
Owner

moaazsidat commented Mar 24, 2022

Will accept PRs fixing the issue, thanks!

@markl-vesper
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
plus: good first issue type: bug Issues or pull requests that are unexpected behaviour
Projects
None yet
Development

No branches or pull requests

3 participants