Avoid asking for read access to photo library when saving images on iOS (#9297)

* use saveToLibraryAsync on iOS

* use _(msg``) syntax
This commit is contained in:
Samuel Newman
2025-11-04 16:33:30 +02:00
committed by GitHub
parent 1b0fbd503e
commit c9033dbc39
3 changed files with 51 additions and 10 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ export async function saveImageToMediaLibrary({uri}: {uri: string}) {
)
}
} else {
await MediaLibrary.createAssetAsync(imagePath)
await MediaLibrary.saveToLibraryAsync(imagePath)
}
} catch (err) {
logger.error(err instanceof Error ? err : String(err), {