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

10 lines
258 B
TypeScript
Raw Normal View History

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