@huolala-tech/page-spy-plugin-rn-async-storage
v2.0.1
Published
A PageSpy plugin, used for React Native app with async-storage.
Downloads
221
Keywords
Readme
English | 中文
@huolala-tech/page-spy-plugin-rn-async-storage
This plugin is used in React Native environment to inspect the data in AsyncStorage.
This plugin can only be registered in PageSpy ReactNative SDK: @huolala-tech/page-spy-react-native
.
Usage
// In your entry file like "main.ts"
import PageSpy from '@huolala-tech/page-spy-react-native';
import AsyncStoragePlugin from '@huolala-tech/page-spy-plugin-rn-async-storage';
// Register plugin
PageSpy.registerPlugin(new AsyncStoragePlugin());
// Init PageSpy
const pageSpy = new PageSpy();
After that, enter the debug room on PageSpy web page and you can see the data in Storage -> AsyncStorage.