docs: add docs for clear*Cache static methods

also removing TODO.md, got included accidentally
see GH discussions
This commit is contained in:
Dylan Vann 2021-09-15 16:16:17 +07:00
parent 16e265eca4
commit fb2bb46903
2 changed files with 8 additions and 18 deletions

View File

@ -214,6 +214,14 @@ FastImage.preload([
])
```
### `FastImage.clearMemoryCache: () => Promise<void>`
Clear all images from memory cache.
### `FastImage.clearDiskCache: () => Promise<void>`
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.

18
TODO.md
View File

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