Skip to content

zaferbozkurt/react-native-clear-cache

 
 

Repository files navigation

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
});

About

React Native - Clear app cache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 62.0%
  • Objective-C 29.8%
  • Ruby 7.2%
  • JavaScript 1.0%