react-native-expo-cached-image icon indicating copy to clipboard operation
react-native-expo-cached-image copied to clipboard

Expose function to clear all cached images

Open wagslane opened this issue 5 years ago • 0 comments

A function should be exposed (not a part of the component) to clear all cached images on the local device.

Currently, images are stored in the cache directory (https://docs.expo.io/versions/latest/sdk/filesystem/#filesystemcachedirectory), and they should stay there. However, instead of being stored at the top level, we should make a directory specifically for our own images. Then we can clear out just that directory when we call the function.

wagslane avatar May 03 '20 20:05 wagslane