- get and claer app cache (Only support >=React Native 0.69)
npm install --save react-native-app-cache
or
yarn add react-native-app-cache
import cache from 'react-native-app-cache'
cache.clearAppCache(() => {
console.log("success")
})
cache.getAppCacheSize((value, unit) => {
console.log("size", value)
console.log("unit", unit)
})