import { KvStore } from "jazz-tools/react-native-core"; import { MMKV } from "react-native-mmkv"; const storage = new MMKV({ id: "jazz-react-native.default", }); export class MMKVStore implements KvStore { async get(key: string): Promise { return storage.getString(key) ?? null; } async set(key: string, value: string): Promise { return storage.set(key, value); } async delete(key: string): Promise { return storage.delete(key); } async clearAll(): Promise { return storage.clearAll(); } }