Search code examples
javascriptreact-nativereduxasyncstorage

Wipe AsyncStorage in react native


I notice that I am wasting a certain amount of time debugging redux actions that I am persisting to AsyncStorage in react-native thanks to redux-persist. Sometimes I'd just like to wipe AsyncStorage to save some development time and try with fresh data.

EDIT: Best case the solution should work on simulators and real devices, iOS and Android. Maybe there are different work arounds for different platforms.

Thanks


Solution

  • Try using clear() function which erases all AsyncStorage for all clients, libraries, etc