MediaLibrary.addAssetsToAlbumAsync
accept (as the 3rd parameters) boolean if to copy the asset. This is great. The problem is with createAlbumAsync
which must get an asset for creating the album but there is no way to tell if I want to copy the asset or now.
Currently, when I create the album the asset saved both of the new album and CDIM album.
Is there another way to do it. Workaround such as delete it from the CDIM only, will be welcome
Thanks!
Update
I just realised that createAssetAsync
is actually create an asset and put it into DCIM folder. I tried to remove it by using
const removed = await MediaLibrary.removeAssetsFromAlbumAsync([asset], DCIM);
console.log(removed); // return true
But the asset is not removed from DCIM.