import RNFetchBlob from 'rn-fetch-blob'
var path = RNFetchBlob.fs.dirs.DocumentDir
RNFetchBlob
.config({ path: toFile })
.fetch('GET', fromUrl)
.then(res => {
})
});
Using the above code for downloading Files in the React native and working fine in the ios. But i am doing this in android and it is showing downloading but not found files in the directly. I want to save files in the (Android=>data=>com.appname) folder. But this code is not working to download it.
I tried DownloadDir that is working and saving files in the download folder. But i want to save it in the (Android=>data=>com.appname) folder. So not able to get that how it will work on it.
This example saves files at below path under MyApp Folder
Its not showing the content via external file manager due to android latest privacy policy (I think from Android 10 +) for that external file manager app have to take extra permission.
You can use below file manager to view files inside data folder https://play.google.com/store/apps/details?id=com.alphainventor.filemanager
Android Vesion
AndroidManifest.xml
App.js
Preview