react-native-clear-app-cache icon indicating copy to clipboard operation
react-native-clear-app-cache copied to clipboard

清理app缓存 React-Native模块封装 支持iOS/Android

Results 8 react-native-clear-app-cache issues
Sort by recently updated
recently updated
newest added

java.lang.NullPointerException: at com.learnta.clear.ClearCacheModule.getDirSize (ClearCacheModule.java:78) at com.learnta.clear.ClearCacheModule.getAppCacheSize (ClearCacheModule.java:44) at java.lang.reflect.Method.invoke (Method.java) at com.facebook.react.bridge.JavaMethodWrapper.invoke (JavaMethodWrapper.java:372) at com.facebook.react.bridge.JavaModuleWrapper.invoke (JavaModuleWrapper.java:158) at com.facebook.react.bridge.queue.NativeRunnable.run (NativeRunnable.java) at android.os.Handler.handleCallback (Handler.java:751) at android.os.Handler.dispatchMessage (Handler.java:95) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage (MessageQueueThreadHandler.java:29) at android.os.Looper.loop...

Hello, We've cloned to a new repo for RN 0.60+ support: [sowlutions/react-native-clear-cache](https://github.com/sowlutions/react-native-clear-cache)

I already clear cache the cache is work for cleary but my userdata still showing up.. i wanna ask, how to show only cache ?

Hi and thank you for this package. I wonder if you could add an option to clear only the cache directory (and not the documents directory). Thank you!

* What went wrong: Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:11:7-34 is also present at [:react-native-clear-app-cache] AndroidManifest.xml:12:9-35 value=(true). Suggestion: add 'tools:replace="android:allowBackup"' to...

请问清空缓存都清空了哪类缓存呢?例如 图片、http 等等哪些呢,README里面的介绍有些不全面,希望可以补充一下,谢谢!

node_modules/react-native-clear-app-cache/android/src/main/java/com/learnta/clear/ClearCachePackage.java:22: 错误: 方法不会覆盖或实现超类型的方法 @Override ^ 1 个错误 :react-native-clear-app-cache:compileReleaseJavaWithJavac FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':react-native-clear-app-cache:compileReleaseJavaWithJavac'. > Compilation failed; see the compiler...

import clear from 'react-native-clear-app-cache' constructor(props) { super(props) this.state = { unit : '', cacheSize : "0", } clear.getAppCacheSize((value,unit)=>{ this.setState({ cacheSize:parseInt(value), unit:unit }) }); }