-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hi guys,
this is my implementation of scanner
`export const scanDocument = async () => {
try {
await readLicence();
} catch (error) {
throw error;
}
try {
await setOCRConfig();
} catch (error) {
throw error;
}
try {
return await showScanner();
} catch (error) {
throw error;
}
};`
I call this method in useEffect but scanner will not start on iOS, without any error.
useEffect(() => { scanDocument(); }, []);
I tried add some timeout. 300ms scanner start correctly, below 300ms scanner doesn't work.
Android works correctly, scanner start immediately after component is mounted.
What is wrong??
Metadata
Metadata
Assignees
Labels
No labels