mancala/apps/mobile/src/storage/index.ts

12 lines
260 B
TypeScript
Raw Normal View History

import {Storage} from '@mancala/core';
import {createMMKV} from 'react-native-mmkv';
export const storage = createMMKV();
2024-06-17 18:52:26 +03:00
export class LocalStorage implements Storage {
getString(key: string): string | undefined {
return storage.getString(key);
}
}