Do not hard code imageOptions.deliveryMode in expo MediaLibrary
E
EX John
In MediaLibrary it says:
// Note: PhotoKit defaults to a deliveryMode of PHImageRequestOptionsDeliveryModeOpportunistic
// which means it may call back multiple times - we probably don't want that
imageOptions.deliveryMode = PHImageRequestOptionsDeliveryModeHighQualityFormat;
However, there're tons of photo apps out there that needs the feature to actually load a low-res image first during scrolling, and only when user stop at certain place, load the actual high-res image from the media library. The performance improvement is very significant. Please consider adding this feature by allowing passing in an optional switch to use PHImageRequestOptionsDeliveryModeOpportunistic. This will benefit us greatly as well as tons of other social/photo apps out there using expo
E
EX John
https://github.com/expo/expo/blob/sdk-53/packages/expo-media-library/ios/MediaLibraryImageLoader.m#L78-L80