wcandillon / react-native-img-cache

Image Cache for React Native
https://hackernoon.com/image-caching-in-react-native-96d8df33ca84
Apache License 2.0
731 stars 143 forks source link

Image not cached properly if there is internet outage while caching #80

Open yeswanth opened 6 years ago

yeswanth commented 6 years ago

image

Ideally, cache for such image should be deleted.

ewindso commented 6 years ago

It also seems to happen if the same image is requested again before it's fully downloaded... (i.e. another component uses it)

wcandillon commented 6 years ago

I switched to a caching component that depends on ExpoKit: https://github.com/wcandillon/react-native-expo-image-cache. This library fixes this issue.

You can read about it in more details at https://medium.com/@wcandillon/5-things-to-know-about-images-react-native-69be41d2a9ee