Expo Image - Is it possible to do the transition effect only when an image is being loaded for the first time?


I’m using the new Expo Image component with the transition prop like so:


The images are inside a Flashlist. While scrolling down on the flash list for the first time this fade in effect looks much better than without the transition where the images come into view more abruptly as they load.

However if I scroll back up the images continue to fade in to view even though they had already loaded before.

Is it possible to only have the transition show for images that are being loaded for the first time? So that if an image has already been loaded since the screen has mounted or was loaded from cache it won’t show the transition effect at all and the image will appear immediately?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.