Closed MarvinBai330 closed 2 years ago
Hi, Thank you for creating such great library.
When I use this library, I found it would be good if there is a button for selecting album, instead of browsering all images.
I have a brief idea about how to implement it:
MediaLibrary.getAlbumsAsync()
Albums[]
const albumAssets = MediaLibrary.getAssetsAsync({ first: 1, album: {item.id}, }); item.albumCover = albumAssets[0].uri
to add a cover of each album.
loadAssets()
album: albumId
I am new to Expo, so I don't know whether this idea is correct or not. Thanks.
add to TODO list
Hi, Thank you for creating such great library.
When I use this library, I found it would be good if there is a button for selecting album, instead of browsering all images.
I have a brief idea about how to implement it:
MediaLibrary.getAlbumsAsync()
to get all albums and push it inputAlbums[]
Albums[]
, thento add a cover of each album.
Albums[]
to show all album's title and its cover (first image)loadAssets()
probably need to be added a paramsalbum: albumId
for example.I am new to Expo, so I don't know whether this idea is correct or not. Thanks.