Hi,
I was having problems getting the file from de URI provided by react-native-document-picker, and I solved removing "file:" from de uri:
Before: file:///uri_to_the_file
After: ///uri_to_the_file
I fixed it doing this:
uri.replace('file:', '')
I think it should be fixed in next versions by passing the correct URI to the React Native frontend.
Thanks for your work, despite this issue, it works like a charm ;)
EDIT: I麓m using RN 0.54.2 and the v3 version of this module ;)
Could this be related?, still I tried uri.replace but it still cant find the image.
{"size":16669,"name":"blueberry.jpeg","uri":"file:///private/var/mobile/Containers/Data/Application/F33012B6-9DC5-43B6-A5EA-AABEC208CD52/tmp/br.com.app-Inbox/blueberry.jpeg","type":"image/jpeg"}
/var/mobile/Containers/Data/Application/F33012B6-9DC5-43B6-A5EA-AABEC208CD52/Documents/blueberry.jpeg
Most helpful comment
Could this be related?, still I tried
uri.replacebut it still cant find the image./var/mobile/Containers/Data/Application/F33012B6-9DC5-43B6-A5EA-AABEC208CD52/Documents/blueberry.jpeg