Hi I have file that I want to copy/move from the android assets folder to the document directory folder. How can I achieve this? TIA :)
Got it working..
let myAsset= RNFetchBlob.fs.asset('myFile.jpg');
const targetPath = dirs.DocumentDir;
RNFetchBlob.fs.exists(dirs.DocumentDir + "/myFile.jpg'")
.then((exist) => {
if(!exist) {
RNFetchBlob.fs.cp(myAsset, targetPath)
.then(() => {
console.log("copied")
})
}
})
Most helpful comment
Got it working..