In previous versions of this library, I used ImageCacheProvider.cacheMultipleImages() to cache a bundle of images (~250) when my app instantiated. The images are rendered in a time sensitive modal that only displays for 5-10 seconds, so I need to ensure they're available in advance.
I see that <ImageCacheProvider/> calls ImageCachePreloader.preloadImages() but would prefer to load these images when the app starts as opposed to when the modal component mounts.
Is it safe to replace ImageCacheProvider.cacheMultipleImages() with the below implementation when the app starts?
Hello,
In previous versions of this library, I used
ImageCacheProvider.cacheMultipleImages()
to cache a bundle of images (~250) when my app instantiated. The images are rendered in a time sensitive modal that only displays for 5-10 seconds, so I need to ensure they're available in advance.I see that
<ImageCacheProvider/>
callsImageCachePreloader.preloadImages()
but would prefer to load these images when the app starts as opposed to when the modal component mounts.Is it safe to replace
ImageCacheProvider.cacheMultipleImages()
with the below implementation when the app starts?Thank you, Aaron