Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't initialize DocumentScanner #19

Open
jcassuleAfricell opened this issue Aug 9, 2023 · 4 comments
Open

Can't initialize DocumentScanner #19

jcassuleAfricell opened this issue Aug 9, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@jcassuleAfricell
Copy link

Hello. I'm having troubles while testing.
I'm using React Native Expo.

It returns:
ERROR TypeError: Cannot read property 'exec' of null

`import DocumentReader from '@regulaforensics/react-native-document-reader-api'
/* some code */

function initReader()
{
DocumentReader.initializeReader({
license: license_as_base_64_string
}, (respond) => {
console.log(respond);
}, error => console.log(error));
DocumentReader.prepareDatabase("Full", (respond) => {
console.log(respond);
},
(error) => { console.log(error); });
}

useEffect(() => {
initReader();
}, []);
/* rest of code */`

Could it be because I'm converting the license file using https://www.base64encode.org/.
If so, how should I do it?

@jcassuleAfricell jcassuleAfricell added the bug Something isn't working label Aug 9, 2023
@jcassuleAfricell jcassuleAfricell changed the title [BR] Can't initialize DocumentScanner Aug 10, 2023
@jcassuleAfricell
Copy link
Author

jcassuleAfricell commented Sep 4, 2023 via email

@Ahtasham-Faheem
Copy link

@DmitrySmolyakov Hey i have actually integrated Document Reader Sdk in my react native app and in android its working completely fine camera is opening and scaning the document but in ios device it's not responding can you assist me in this or anyone could help me with this that would be Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants
@Ahtasham-Faheem @jcassuleAfricell and others