Fix: Set copyAsset to true in expo-media-library to avoid SecurityException prompt on Android 11+ ; Bump to 23.01.7

This commit is contained in:
2026-06-13 11:59:51 +02:00
parent 313a69e677
commit cdfd1a2e2b
5 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -72,11 +72,11 @@ export async function saveToGallery(localUri: string, type: 'Raw' | 'Collage', e
if (!album) {
// 3. If it doesn't exist, create it with our asset
await createAlbumAsync(ALBUM_NAME, asset, false);
await createAlbumAsync(ALBUM_NAME, asset, true);
logger.log(`Created new album "${ALBUM_NAME}" and copied photo.`);
} else {
// 4. If it exists, add our asset to it
await addAssetsToAlbumAsync([asset], album, false);
await addAssetsToAlbumAsync([asset], album, true);
logger.log(`Copied photo to existing album "${ALBUM_NAME}".`);
}