What should I use to list the photos? "CameraRoll.getPhotos()" function deleted?

Please provide the following:

  1. SDK Version: 36
  2. Platforms(Android/iOS/web/all):

What should I use to list the photos? “CameraRoll.getPhotos()” function deleted?

Hi

According to the SDK 36 release notes:

CameraRoll and ART have both been removed from the react-native package, developers are encouraged to use expo-media-library and react-native-svg instead

See here:

yes but there is no function to list the photos in expo-media-library. i want to listing photos by album name.

When you say “by album name”, do you mean you want to get a list of items for a given album?

Wouldn’t MediaLibrary.getAssetsAsync({ album: "album name" }) work?

1 Like

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