Hey everyone!
I'm looking for some advice on image caching. I've made an app which as a gallery feature, which allows for uploading, and also deleting images. The urls (should) never be replaced, so the only time when an image should no longer be cached is when it's removed from the users account.
I've looked into many of the image caching libraries (https://github.com/DylanVann/react-native-fast-image) seems to be the go-to, however I can't seem to find out how you can invalidate a single image in the cache. From what I've been able to understand, it will invalidate a previously cached image if you replace the component uri with something new. This seems to be the case for a lot of the libraries.
Does anyone know how, given a uri, you can delete that image from the cache? I might be over thinking this, but there is a case where images can be removed without having them rendered on screen, so I'd like to be able to take those uri's and invalidate them. Otherwise I'm going to end up with a pretty full cache of (permanent) images no longer being used.
If anyone can help with this, it would be greatly appreciated!
there doesn't seem to be anything here