UNPKG

react-native-mmkv

Version:

The fastest key/value storage for React Native. ~30x faster than AsyncStorage! Works on Android, iOS and Web.

20 lines 731 B
import type { TurboModule } from 'react-native'; export interface Spec extends TurboModule { /** * Gets the base directory of the documents storage */ getBaseDirectory(): string; /** * Get the App Group directory if it exists, or `undefined` otherwise. * * The App Group directory will be used instead of a custom path to use the same * MMKV instance between the iOS app, Widgets, and other companion apps. * * To set an App Group, add a `AppGroup` field to `Info.plist` * * @platform ios */ getAppGroupDirectory(): string | undefined; } export declare function getMMKVPlatformContextTurboModule(): Spec; //# sourceMappingURL=NativeMmkvPlatformContext.d.ts.map