Clear all project state on the device
slap
This would be really useful for iOS. Android is designed well enough that you can do this yourself via the system menus.
J
Jay Simons
You'd think this would be a no-brainer
Jonathan
Im in the same boat, developing something that saves to localstorage on the web and SecureStore in the expo app, would be really useful to be able to clear it during development
M
Matthew Gaba
+1. I am developing authentication, and I would like to be able to test the authentication flow, so I would like a button in the expo UI to clear the async storage.
Steve Moretz
Matthew Gaba: You don't actually need this for that.
Hebron Lorenzo
Steve Moretz: Then, how?
Steve Moretz
Hebron Lorenzo: AsyncStorage has a clear method, https://react-native-async-storage.github.io/async-storage/docs/api/#clear
A
Ansh Nanda
This would be very useful. Surely there is a work around. Doesn't
expo start --clear
do this?Steve Moretz
Ansh Nanda: Could you reference that argument in the docs? If --clear is short for -c then no, that just rebuilds the javascript bundle cache.
Mark Han
Steve Moretz: --clear only clears the Metro Bundle Cache
...
PLEASE add this! Any update on this?
Tag Howard
This would be great for testing authentication, but especially to clear a fail state from the local storage (e.g. some value that stops react from initializing)
Mauro Garcia
Any news about this request?
Steve Moretz
I wished it was implemented by now.
Guille Acosta
Yeap, this would be really useful, in my case it would make easier work and test persist storage functionalities.
Load More
→