【发布时间】:2016-07-25 14:16:25
【问题描述】:
我在 React Native 中将一些项目保存到 AsyncStorage,并且我正在使用 chrome 调试器和 iOS 模拟器。
没有 react native,使用常规的 web 开发 localStorage,我能够看到 Chrome Debugger > Resources > Local Storage 下存储的 localStorage 项目
知道如何查看 React Native AsyncStorage 存储的项目吗?
【问题讨论】:
-
不确定是否存在这样的工具,我通常只是查询它并传递一个回调来记录它。
AsyncStorage.getItem('thing').then((res) => console.log(res)) -
是的,这就是我现在所做的,但我想看看是否有一种可视化的方式来查看存储中的所有内容。