2

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).

Ben Butterworth
  • 22,056
  • 10
  • 114
  • 167

1 Answers1

1

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().

Ben Butterworth
  • 22,056
  • 10
  • 114
  • 167