-
Notifications
You must be signed in to change notification settings - Fork 315
Open
Description
Hi there!
Why do the images render every time the ImageViewing is visible, even if they've already been rendered? When a user closes and reopens ImageViewing, it loads the images from scratch without caching.
How can I preload the images and then load them from the cache so I don't see the loader spinner all the time?
import ImageViewing from 'react-native-image-viewing';
...
<ImageViewing
images={images}
imageIndex={viewImageIndex ?? 0}
key={item.uuid}
visible={viewImageIndex !== null}
onRequestClose={() => {
setViewImageIndex(null);
}}
/>
janziemba, PeterTam-ATAL, algo-technologies-in, rogerkerse, thisjuncedrick and 7 more
Metadata
Metadata
Assignees
Labels
No labels