MediaLibrary: getAssetsAsync and getAssetInfoAsync for many photos (bulk)

I need to work with MediaLibrary and load as many photos as possible with coordinates (lng, lat), and I am not interested in other EXIF data.

Now I do: MediaLibrary.getAssetsAsync for 100 photos and then for each MediaLibrary.getAssetInfoAsync to get the coordinates

Problem:

  • It needs one extra query for EACH item to get coordinates
  • It loads small number of photos (what is the limit?)
  • It loads all EXIF data I am not interested in
  • It takes a really long time and blocks UI

Is there a better way to get many photos with coordinates?

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