Please provide the following:
- SDK Version: 44
- Platforms(Android/iOS/web/all): Android
Hello Team ,
I am working with expo-file-system 13.1.4 after downloading the image some images are half grey
const downloadFile = async (_uri, filename, downloadFileCallback) => {
if (isMounted) {
try {
downloadResumable = FileSystem.createDownloadResumable(
_uri,
FileSystem.documentDirectory + filename,
{},
downloadFileCallback,
null
);
return await downloadResumable.downloadAsync();
} catch (error) {
await FileSystem.deleteAsync(FileSystem.documentDirectory + filename);
}
}
};
mediaExist = await checkFileExists(filename);
if (!mediaExist?.exist && isMounted) {
const result = await downloadFile(
_uri,
filename,
downloadFileCallback
);
uri = result?.uri;
}
const valueUri = mediaExist?.uri ? mediaExist.uri : uri;
isMounted && valueUri && setmediaUri(valueUri);
I can’t figure the problem anyone faced this problem before ? thanks