2024-06-17 18:52:26 +03:00
|
|
|
import { Storage } from '@mancala/core'
|
2024-03-25 10:04:03 +03:00
|
|
|
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)
|
|
|
|
|
}
|
|
|
|
|
}
|