I'm using "React native" to build an iOS app at the moment.
I'm currently noticing an issue while displaying images in the "Image" element when loading images from the internet via source={{uri: ...}}
. Sometimes, I see a short white flash of the images, as if it was reloading the image. This reloading is connected to the fact that I'm kind of shifting the image from one "Image" element to another.
However, this "white flash" is not happening when using a local image (e.g. from XCode). My idea was now to pre-load the image and save it "locally" and then use the local image as source for the "Image" component instead of the URL. This would aswell decrease the traffic generated.
Could you please give me a hint how to do that? I have read in the "Image" documentation that you can have local images as source, but I don't know yet how to create them "on the fly".