react-native-fast-image icon indicating copy to clipboard operation
react-native-fast-image copied to clipboard

Add way to check if an image is cached.

Open jslok opened this issue 7 years ago • 5 comments

I want to load a low quality image if user is on mobile data. However, if the high quality image is already cached, then show the high quality image. Any way to find out if a particular image is cached already or not?

jslok avatar Dec 07 '17 04:12 jslok

It would be a new feature.

We could add something like: FastImage.isCached(url).then(res => ...)

Another potential feature that could solve this would be something like a cache only mode.

DylanVann avatar Apr 27 '18 02:04 DylanVann

@DylanVann it will be very useful, especially with a fading transition when the image is loaded. Currently, the fading transition is always applied, if we can check if the image is in the cache, we could apply the transition only the first time.

padupuy avatar Jun 21 '18 10:06 padupuy

Any work being done towards this?

erickreutz avatar Aug 01 '18 20:08 erickreutz

5 years later and still not implemented?

Stevemoretz avatar Feb 20 '22 13:02 Stevemoretz

+1

jakobsuckow avatar Jun 15 '22 08:06 jakobsuckow