react-native-image-crop-picker icon indicating copy to clipboard operation
react-native-image-crop-picker copied to clipboard

[iOS] Gallery opens slow when lots of photos/albums on device

Open trackwell-mike opened this issue 5 years ago • 8 comments

Version

  • react-native-image-crop-picker v0.36.0 (~~react-native-image-crop-picker v0.26.1~~)
  • react-native v0.62.2

Platform

  • iOS

Expected behaviour

Image gallery should open within a reasonable amount of time, even if a large number of photos exist on the user's device (my guess is this is the source of the problem).

Actual behaviour

Gallery takes up to 2 minutes to load. Once it is open, navigating between the different galleries on the user's device is extremely slow/delayed on the UI.

When tested on a device with much fewer photos (ie. iOS Simulator), it functions at an expected speed.

Steps to reproduce

  1. Start with an iOS device with lots of photos and lots of albums. (My device has 46k photos/videos, across probably 30+ albums)

  2. Run ImagePicker with default settings. (I am not enabling includeBase64, so that is not the issue)

trackwell-mike avatar Aug 25 '20 00:08 trackwell-mike

@trackwell-mike I can understand the problem, It's really frustrating for application users. Until you find any working solution, try to put ActivityIndicator or some kind of Loder when opening picker, and hide it when you get response or error, so user will think gallery is being load. And if you find out something helpful solution to overcome this problem, you can share here!

mitesh-db avatar Aug 26 '20 12:08 mitesh-db

This doesn't appear to be a popular issue, but we still are experiencing it. 

@ivpusic I'm curious if you've seen this type of issue before?

trackwell-mike avatar Mar 31 '21 18:03 trackwell-mike

A user of our app just reported this issue. She has >68K images on her phone. It takes >10 seconds to load the gallery.

hmolotsi avatar May 12 '21 05:05 hmolotsi

And....still no solution?

mrsteveh avatar Feb 09 '22 22:02 mrsteveh

Hi there! Chiming in that I am also seeing reports of significant delay with a user who has over 68k images. (CC: @pfrazee)

renahlee avatar May 12 '23 19:05 renahlee

I al experiencing the same issues. I have just shy of 25k photos and videos and the gallery takes around 3-5 seconds to load. Also selecting photos is slow as well.

oem2 avatar Jul 04 '23 23:07 oem2

This is really bad. When migrating to expo-image-picker, I can't make the free cropping work in iOS, so I have to stay with this library. Any updates on fixing this performance issues?

mateozaratefw avatar Feb 24 '25 22:02 mateozaratefw

A huge problem..any ideas what causing the heavy scrolling and opening of the gallery? It seems that including exif make it much slower...but it is slow even without.

nes123 avatar Apr 02 '25 13:04 nes123