1.3.6-8 - Production Build - Resolve deletion.
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
ActivityIndicator,
|
||||
Alert,
|
||||
Modal,
|
||||
Platform,
|
||||
ScrollView,
|
||||
StyleSheet,
|
||||
Text,
|
||||
@@ -177,11 +178,13 @@ export function UploadProgress({
|
||||
|
||||
if (deleteAfterUpload) {
|
||||
try {
|
||||
const res = await Promise.all(
|
||||
filesToDelete.map(async (f) =>
|
||||
MediaLibrary.removeAssetsFromAlbumAsync(f, f.albumId)
|
||||
)
|
||||
);
|
||||
if (Platform.OS === "android") {
|
||||
const res = await Promise.all(
|
||||
filesToDelete.map(async (f) =>
|
||||
MediaLibrary.removeAssetsFromAlbumAsync(f, f.albumId)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
const deleteResult = await MediaLibrary.deleteAssetsAsync(
|
||||
filesToDelete
|
||||
|
||||
Reference in New Issue
Block a user