dist/index.js
function clearCacheForRef(dbRef) {
		var location = dbRef.toString().substring(dbRef.root.toString().length);

		var promises = [];

		acceptedOnVerbs.forEach(function (eventType) {
			var storageKey = '@FirebaseLocalCache:' + eventType + ':' + location;
			promises.push(_reactNative.AsyncStorage.removeItem(storageKey));
		});

		return Promise.all(promises);
	}
function clearCacheForRef(dbRef) {
		var location = dbRef.toString().substring(dbRef.root.toString().length);

		var promises = [];

		acceptedOnVerbs.forEach(function (eventType) {
			var storageKey = '@FirebaseLocalCache:' + eventType + ':' + location;
			promises.push(_reactNative.AsyncStorage.removeItem(storageKey));
		});

		return Promise.all(promises);
	}
function clearCacheForRef ( dbRef ) { var location = dbRef . toString ( ) . substring ( dbRef . root . toString ( ) . length ) ; var promises = [ ] ; acceptedOnVerbs . forEach ( function ( eventType ) { var storageKey = '@FirebaseLocalCache:' + eventType + ':' + location ; promises . push ( _reactNative . AsyncStorage . removeItem ( storageKey ) ) ; } ) ; return Promise . all ( promises ) ; }
Remove the currently cached data for a particular database.Reference. If there are any listeners still active, they will re-write their data to the cache when the .off method is called.
@param {firebase.database.Reference} dbRef Firebase database reference to clear.
@returns {Promise} Promise that resolves once all cached data for this ref has been cleared.
Remove the currently cached data for a particular database . Reference . If there are any listeners still active they will re - write their data to the cache when the . off method is called .