react-native-app-cache
v0.1.1
Published
get&clear app cache
Downloads
38
Readme
react-native-app-cache
OverView
- get and claer app cache (Only support >=React Native 0.69)
Installing
npm install --save react-native-app-cache
or
yarn add react-native-app-cache
Use
import cache from 'react-native-app-cache'
cache.clearAppCache(() => {
console.log("success")
})
cache.getAppCacheSize((value, unit) => {
console.log("size", value)
console.log("unit", unit)
})