Hi,
I’m faced with a problem : I can’t add an image to an album, without create a duplicate or requesting permission to remove the old image.
My steps:
- capture a picture with
ImagePicker.launchCameraAsync()
- create an asset with
MediaLibrary.createAssetAsync(uri)
- move the asset to an album with
MediaLibrary.addAssetsToAlbumAsync([asset], album, false)
. The false arg is to move, not copy
Because I want the asset to be moved and not duplicated, the third step ask user for permission to delete the old asset.
We can’t call MediaLibrary.addAssetsToAlbumAsync
directly with an uri, we have to create an asset. So to move/remove this asset, permission is asked.
Am I the only one who wants to do this?