react-native-fs
react-native-fs copied to clipboard
copyAssetsFileIOS not working for gifs
steps to reproduce
// item is a GIF image picked from IOS camera roll
const destination = `${RNFS.TemporaryDirectoryPath}${item.filename}`
let absolutePath = await RNFS.copyAssetsFileIOS(item.uri, destination, 0, 0)
// by checking directly in the destination, we find that the GIF has been converted into PNG
Hi @JohnBerd, I am also getting the same error, do you have any solution for this part?
Hi @Sotatek-DungNguyen7, I looked at the source code and only jpegs and pngs can be copied.
I had to install the expo modules and to use expo filesystem instead of this package.
Any other alternative packages
Same issue for me any solution's?
You may be view this solution: https://github.com/Sotatek-DungNguyen7/react-native-fs/commit/5ba89c6ac3c3e44107732204867d353447617c47