Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

react-native-text-detector worked fine in android but why it always returned false in iOS?

$
0
0

First, I used https://github.com/jeanpan/react-native-camera-roll-picker#readme to get an image from photo library, it returned a uri: ph://11A68DD6-A651-462D-BDAB-68FB853ED141/L0/001

Then, I used https://github.com/zsajjad/react-native-text-detector to get text from that image

It worked fine in android but it always returned false in iOS, and I found the following error in console log

NSURLConnection finished with error - code -1002

For more information, the image control can show that image correctly

Here is my source code : https://github.com/haison8x/react-native-test-ocr

Is there any problem with that URI or with application permission?


Viewing all articles
Browse latest Browse all 16750

Trending Articles