Open ghulamabbas2 opened 1 year ago
@ghulamabbas2 First create the file you want to copy using ScopedStorage.createFile
then use the returned url in copyfile to write it's contents.
const file = await ScopedStorage.createFile(...);
ScopedStorage.copyFile(item.uri, file.uri)
.then(res => {
console.log(res);
})
.catch(err => {
console.log(err);
});
I have written this code:
The app crashes when I click on the button to copy the file. Can anyone provide me the correct way to copy file?