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);
}}
/>
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?