react-native-text-detector icon indicating copy to clipboard operation
react-native-text-detector copied to clipboard

Cannot read property 'detectFromUri' of undefined

Open whdlrghks opened this issue 5 years ago • 5 comments

My app can be builded.

But when I activate the detectFromUri function, it shows it is undefined.

And also, I see the console, RNTextDetector is undefined after import this module.

How to solve this issue?

whdlrghks avatar Feb 23 '19 09:02 whdlrghks

Same issue here. Would love to know what the issue is here.

SargoDarya avatar Mar 13 '19 22:03 SargoDarya

Please make sure you have followed all the steps for linking library on native side.

zsajjad avatar Mar 14 '19 20:03 zsajjad

Could this be an Expo issue?

nasseh101 avatar Mar 21 '19 03:03 nasseh101

Facing the same issue. Seeking help to resolve this on urgent basis. Displays as warning. Possible Unhandled Promise Rejection (id:0): TypeError : undefined is not an object (evaluating '-reactNativeTextDetector.RNTextDetector.detectFromUri')

I am using CRNA configuration not Expo.

Also want to know whether this library can be used with Expo too?

RiteekaC avatar Apr 05 '19 09:04 RiteekaC

Issue solved after properly linking the library as @zsajjad suggested. I also had to create "google-services.json" file from Firebase for application to work

alicanali-technoperia avatar May 18 '19 05:05 alicanali-technoperia