itinance / itinance/react-native-fs
moveFile can't deal with paths with uri syntax
- Dominant language
- C++
- Stars
- 5k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
This library:
https://github.com/ivpusic/react-native-image-crop-picker
returns an image object that has a path property that starts with file:///storage on android.
on iOS the path is just /Data...
using the returned path from the component with moveFile results in an error. The file can't be found. Now ok, I can replace file:// with an empty string and then moveFile finds the file on Android as well, but the funny thing is that if I want to use the new file with react native Image I have to again add file:// to the file, otherwise the Image component doesn't recognise the file as local.
Shouldn't we support operations with uri paths on Android?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.