react-native-bulletproof-redux-provider
Version:
A bulletproof Redux provider for secure encryption of your user's data
13 lines (11 loc) • 327 B
JavaScript
/* @flow */
import AsyncStorage from '@react-native-async-storage/async-storage';
export const clearStore = async () => {
try {
AsyncStorage.clear();
} catch (err) {
// in case the store has been cleared,
// so we want to gracefully ignore this here without throwing another error
console.log(err);
}
};