How to set Filename when creating an asset with MediaLibrary.createAssetAsync

I would like to save an image with MediaLibrary.createAlbumAsync or MediaLibrary.addAssetsToAlbumAsync, what I manged to do, but moreover I would like to choose the filename of the image as I want.
Is it possible to do it ?

I tried to change the asset.filename after creating it with asset = createAssetAsync(uri), but it doesn’t work.

Thanks for your help

Hey @spoutnik97,

Unfortunately this isn’t currently possible with the MediaLibrary API.

Cheers,

Adam

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.