React-native-fast-image: Add way to check if an image is cached.

Created on 7 Dec 2017  路  3Comments  路  Source: DylanVann/react-native-fast-image

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?

feature

Most helpful comment

@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.

All 3 comments

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 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.

Any work being done towards this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Aligertor picture Aligertor  路  3Comments

NgocNamFNT picture NgocNamFNT  路  3Comments

skleest picture skleest  路  3Comments

banphlet picture banphlet  路  3Comments

hawkup picture hawkup  路  3Comments