getAssets takes a prepareForSizeDisplay prop. This uses the PHCachingImageManager to request images of assets with a given size.
Example:
RNPhotosFramework.getAssets({ startIndex: 0, endIndex: 100, prepareForSizeDisplay: Rect(100,100), fetchOptions: { sourceTypes: ['userLibrary'], sortDescriptors: [{ key: 'creationDate', ascending: true, }] } }).then((response) => console.log(response.assets));
When the user deletes a row in FlatList , you can get a full-sized asset. Do not download a full-sized asset until you need to display it.
source share