Closed ronastlelobo closed 6 years ago
@ronastlelobo Did you find any solution?
No
You can use RnFetchBlob to get the exact path of an image. RNFetchBlob.fs .stat(uri) .then(stats => { filepath = stats.path; console.log(filepath); })
you have to use local file url that init with file://
you can use rn-fetch-blob' or 'react-native-real-path
I am using react-native-document-picker. I get the file path using the res object,
res.uri
give me file path in the form of content://com.android.providers.media.documents/document/video%xxxxxxx. On giving this file path toRNThumbnail.get(res.uri)
my app crashes. I don't know whether there is problem withuri
or anything else.