@lastos/page-spy-plugin-rn-async-storage
Version:
A PageSpy plugin, used for React Native app with async-storage.
20 lines (19 loc) • 882 B
TypeScript
import type { SocketStoreBase } from '@lastos/page-spy-base/dist/socket-base';
import type { SpyStorage, PageSpyPlugin, OnInitParams } from '@lastos/page-spy-types';
import { InitConfigBase } from '@lastos/page-spy-base';
export default class RNAsyncStoragePlugin implements PageSpyPlugin {
name: string;
static hasInitd: boolean;
static originFunctions: import("@react-native-async-storage/async-storage").AsyncStorageStatic;
$socketStore: SocketStoreBase | null;
$pageSpyConfig: InitConfigBase | null;
onInit(params: OnInitParams<InitConfigBase>): void;
onReset(): void;
sendRefresh(): Promise<void>;
listenRefreshEvent(): void;
initStorageProxy(): void;
sendSetItem(key: string, value: string): void;
sendRemoveItem(key: string): void;
sendClearItem(): void;
sendStorageItem(info: Omit<SpyStorage.DataItem, 'id'>): void;
}