React Native - 如何查看 AsyncStorage 中存储的内容? [英] React Native - How to see what's stored in AsyncStorage?

查看:30
本文介绍了React Native - 如何查看 AsyncStorage 中存储的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 React Native 中将一些项目保存到 AsyncStorage,并且我正在使用 chrome 调试器和 iOS 模拟器.

没有 react native,使用常规的 Web 开发 localStorage,我能够在 Chrome Debugger > 下看到存储的 localStorage 项目.资源 >本地存储

知道如何查看 React Native AsyncStorage 存储的项目吗?

解决方案

你可以使用 reactotron 我认为它有 Async Storage explorer ;)

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?

解决方案

You can use reactotron i think it has Async Storage explorer ;) https://github.com/infinitered/reactotron

这篇关于React Native - 如何查看 AsyncStorage 中存储的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆