dist/index.js
function clearCache() {
		return _reactNative.AsyncStorage.getAllKeys().then(function (keys) {
			var promises = [];

			keys.forEach(function (key) {
				if (key.startsWith('@FirebaseLocalCache:')) {
					//delete it from the cache if it exists.
					promises.push(_reactNative.AsyncStorage.removeItem(key));
				}
			});

			return Promise.all(promises);
		});
	}
function clearCache() {
		return _reactNative.AsyncStorage.getAllKeys().then(function (keys) {
			var promises = [];

			keys.forEach(function (key) {
				if (key.startsWith('@FirebaseLocalCache:')) {
					//delete it from the cache if it exists.
					promises.push(_reactNative.AsyncStorage.removeItem(key));
				}
			});

			return Promise.all(promises);
		});
	}
function clearCache ( ) { return _reactNative . AsyncStorage . getAllKeys ( ) . then ( function ( keys ) { var promises = [ ] ; keys . forEach ( function ( key ) { if ( key . startsWith ( '@FirebaseLocalCache:' ) ) { //delete it from the cache if it exists. promises . push ( _reactNative . AsyncStorage . removeItem ( key ) ) ; } } ) ; return Promise . all ( promises ) ; } ) ; }
Remove all currently cached data. If there are any listeners still active, they will re-write their data to the cache when the .off method is called.
@returns {Promise} Promise that resolves when all cached data has been deleted.
Remove all currently cached data . If there are any listeners still active they will re - write their data to the cache when the . off method is called .