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

React-Native Firebase ML Kit Vision Image Labeling not working with iOS

$
0
0

I am trying to use RNFirebase MLKit image labelling in my RN app. It works fine on android, but on iOS i get the following error,

NativeFirebaseError: [vision/file-not-found] The local file specified does not exist on the device.

The images are taken though "@react-native-community/cameraroll" and the ios image path is as follows,

ph://45983F53-3C96-42D0-9337-C9F681293627/L0/001

The fixes i have tried are,

import {utils} from '@react-native-firebase/app';${utils.FilePath.PICTURES_DIRECTORY}/${            //       d[key].node.image.filename            //     }
'assets-library'+'://asset/asset.JPEG?id='+               d[key].node.image.uri.substring(5).replace('/L0/001', '') +'&ext=JPEG'
ph-upload://45983F53-3C96-42D0-9337-C9F681293627/L0/001

None of the above worked.

The Build versions are,

"react-native": "0.62.2"."@react-native-community/cameraroll": "^1.5.2"."@react-native-firebase/ml-vision": "^7.0.1","@react-native-firebase/app": "^7.0.1",

Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>