You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the following code to download remote image, it is working on Android and IOS Simulator but didn't work on iphone 5s device(downloaded the image file but not save into local file). any one can give me suggest. I have update to RN0.34 & RNFS 2.0.2rc-2 , it is also happend on RN0.31 & RNFS 1.5.1
var DownloadFileOptions = {
fromUrl: url, // URL to download file from
toFile: tempImagePath // Local filesystem path to save the file to
}
var result = RNFS.downloadFile(DownloadFileOptions);
result.promise.then(function (val) {
Reactotron.log('Success Result:' + JSON.stringify(val));
var localFilePath = 'file://' + tempImagePath;
self.setState({
localImagePath: localFilePath,
imageLoaded: true,
});
}, function (val) {
Reactotron.log('Error Result:' + JSON.stringify(val));
}
).catch(function (error) {
Reactotron.error(error.message);
});
The text was updated successfully, but these errors were encountered:
I use the following code to download remote image, it is working on Android and IOS Simulator but didn't work on iphone 5s device(downloaded the image file but not save into local file). any one can give me suggest. I have update to RN0.34 & RNFS 2.0.2rc-2 , it is also happend on RN0.31 & RNFS 1.5.1
The text was updated successfully, but these errors were encountered: