@react-native-ohos/react-native-mmkv-storage
Version:
This library aims to provide a fast & reliable solution for you data storage needs in react-native apps. It uses [MMKV](https://github.com/Tencent/MMKV) by Tencent under the hood on Android and iOS both that is used by their WeChat app(more than 1 Billion
10 lines • 371 B
TypeScript
import MMKVInstance from '../mmkvinstance';
export declare function useMMKVRef<T>(key: string, storage: MMKVInstance, defaultValue: T): {
current: T;
reset(): void;
};
export declare const createMMKVRefHookForStorage: (storage: MMKVInstance) => <T>(key: string, defaultValue?: T) => {
current: T;
reset(): void;
};
//# sourceMappingURL=useMMKVRef.d.ts.map