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.1.0","@react-native-firebase/app": "^7.1.0",