Skip to content

moveFile can't deal with paths with uri syntax #274

Open
@compojoom

Description

@compojoom

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions