1 Star 0 Fork 0

yuezl / react-native-clear-cache

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
README.md 685 Bytes
一键复制 编辑 原始数据 按行查看 历史
Roc Khalil 提交于 2019-10-15 15:10 . update README

react-native-clear-cache

This app is a clone of react-native-clear-app-cache but transformed to work with RN 0.60+

Getting started

Add to your package.json:

"react-native-clear-cache": "sowlutions/react-native-clear-cache"

Mostly automatic installation

No need to link as of RN 0.60.

Usage

import ClearCache from 'react-native-clear-cache';

// get the storage usage
ClearCache.getAppCacheSize(data => {
  alert(data) // will show the App's storage usage in the app's cache.
});


// clear the storage
ClearCache.clearAppCache(data => {
  alert(data) // will alert the new size
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yuezonglun/react-native-clear-cache.git
git@gitee.com:yuezonglun/react-native-clear-cache.git
yuezonglun
react-native-clear-cache
react-native-clear-cache
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891