react-native-barcode-mask
react-native-barcode-mask copied to clipboard
Unmounted component error
Describe the bug Unmount warning when scanning barcodes where you navigate imiddently after.
To Reproduce Use react navigation to navigate to unmount the screen the scanner is placed on and navigate on scan to a different screen.
Screenshots
Smartphone (please complete the following information):
- Device: iPhone12 pro
Additional context This timeout should not happen after a successful scan https://github.com/nartc/react-native-barcode-mask/blob/798dc571144983d4c1571d10856a5caecc10486b/src/hooks/useBarcodeFinder.ts#L67