From fb2bb46903703b1220b0b84c02be14b01bd35706 Mon Sep 17 00:00:00 2001 From: Dylan Vann Date: Wed, 15 Sep 2021 16:16:17 +0700 Subject: [PATCH] docs: add docs for clear*Cache static methods also removing TODO.md, got included accidentally see GH discussions --- README.md | 8 ++++++++ TODO.md | 18 ------------------ 2 files changed, 8 insertions(+), 18 deletions(-) delete mode 100644 TODO.md diff --git a/README.md b/README.md index e8a2213..638e7e1 100644 --- a/README.md +++ b/README.md @@ -214,6 +214,14 @@ FastImage.preload([ ]) ``` +### `FastImage.clearMemoryCache: () => Promise` + +Clear all images from memory cache. + +### `FastImage.clearDiskCache: () => Promise` + +Clear all images from disk cache. + ## Troubleshooting If you have any problems using this library try the steps in [troubleshooting](docs/troubleshooting.md) and see if they fix it. diff --git a/TODO.md b/TODO.md deleted file mode 100644 index 0a673bd..0000000 --- a/TODO.md +++ /dev/null @@ -1,18 +0,0 @@ -# Possible Features - -These are major features people are interested in. - -- [ ] Fine grained cache control. - - [ ] Check cache for image, get path. - - [ ] Remove specific image from cache. - - [ ] Preload / add image to cache. -- [ ] Tint - - Needs to work well and look the same across platforms. -- [ ] Blur - - Needs to work well and look the **SAME** across platforms. -- [ ] Fix rounded corner AA issue. - - Needs to work per corner, across platforms (should not affect iOS). -- Probably after Blur and Tint we don't need to worry about arbitrary filters, can be done using other libs. -- [ ] React Native Web support. - - Want to at least support all styling features. - - Stuff like fine grained cache control and preloading can probably no-op, at least as a first pass.