react-native-mmkv
Version:
⚡️ The fastest key/value storage for React Native.
12 lines (11 loc) • 452 B
TypeScript
import type { MMKV } from '../specs/MMKV.nitro';
import type { Configuration } from '../specs/MMKVFactory.nitro';
/**
* Use the default, shared MMKV instance.
*/
export declare function useMMKV(): MMKV;
/**
* Use a custom MMKV instance with the given configuration.
* @param configuration The configuration to initialize the MMKV instance with. Does not have to be memoized.
*/
export declare function useMMKV(configuration: Configuration): MMKV;