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:
@@ -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}".`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user