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

React Native FS readFile returns invalid path for iOS

$
0
0

I have the functionality to readFile using RNFS library and CameraRoll of React Native.Here is my code below:

const base64Image = await RNFS.readFile(uri, 'base64');

It's working fine for Android but not in iOS.

Here is the error for iOS below:

err: Error: ENOENT: no such file or directory, open'ph-upload://02FA9ADA-FD03-43EF-A2B7-9DEDC9DC4AC6/L0/001'

Appreciate if someone could help. Thanks


Viewing all articles
Browse latest Browse all 16750

Trending Articles



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