Reputation: 28800
I would like to delete application data like local storage without reinstalling the app.
I am using AsyncStorage in react-native, and have persisted some data. To quickly test storage, I would like to be able to clear AsyncStorage manually through the simulator, without implementing a logout/ clear AsyncStorage button in the app. (React-Native AsyncStorage.clear() is failing on IOS).
Upvotes: 3
Views: 2973
Reputation: 28800
Since there is no easy way to do it, I have added a developer menu in my app, with a button called clear AsyncStorage, which called AsyncStorage.clear()
.
Upvotes: 2