Skip to content

Can't initialize DocumentScanner #19

@jcassuleAfricell

Description

@jcassuleAfricell

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions