Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

"[TypeError: Cannot read property 'detectFromUri' of null]" #47

@FranciscoNoble

Description

@FranciscoNoble

Expo Version: '49'
React Native Version: '0.72'

So, I'm just trying to follow the example on README but everytime I try to scan any text using any method I get this annoying error "[TypeError: Cannot read property 'detectFromUri' of null]" or "[TypeError: Cannot read property 'detectFromFile' of null]"

I'm giving the function valid URIs but it has no effect, the error is still happening.
Idk if this makes a difference, but I'm running the app through the Expo Go App on an Android 13 device

const OCR = async ( ) => {
     try{
         const result = await MlkitOcr.detectFromUri(valid_URI);
         console.log(result);
     }
     catch(error){
         console.error(error)
      }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions