React Native - How to see what's stored in AsyncStorage?

Wonka picture Wonka · Jul 25, 2016 · Viewed 35.2k times · Source

I save some items to AsyncStorage in React Native and I am using chrome debugger and iOS simulator.

Without react native, using regular web development localStorage, I was able to see the stored localStorage items under Chrome Debugger > Resources > Local Storage

Any idea how can I view the React Native AsyncStorage stored items?

Answer

Jayden picture Jayden · Feb 28, 2018

React Native Debugger has this built in.

Just call showAsyncStorageContentInDev() in the RND console and you'll be able to see a dump of your app's storage.