I have used the react-native-fs
library to download image through my app. The download shows to be completed but still the image doesn't show up in the phone anywhere. The folder shows the modified date but no image over there.
The function that I am calling :
RNFS.downloadFile({
fromUrl: 'https://facebook.github.io/react-native/img/header_logo.png',
toFile: '${RNFS.DocumentDirectoryPath}/react-native-hello.png',
}).promise.then((r) => {
console.log("download done");
this.setState({ isDone: true })
});
Can anyone help me get though this ?