/
mustreets
/
TestApp
Обзор
Документация
Войти
/
mustreets
/
TestApp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
1
CI/CD
Аналитика
Безопасность
master
src/utils/asyncStorageManager/asyncStorageManager.tsx
28 строк
675 B
Slava
Remove Crashlytics integration from the beta lane in Fastfile
07 июн 2026, 20:06
07 июн 2026, 20:06
f21773c
Код
Авторство
О чём код?
import AsyncStorage from '@react-native-async-storage/async-storage'; export class AsyncStorageManger { private storage: typeof AsyncStorage = AsyncStorage; constructor(storage: typeof AsyncStorage) { this.storage = storage; } public async getItem( key: string, ): Promise<string | null> { return await this.storage.getItem(key); } public async setItem( key: string, value: string, ): Promise<void> { await this.storage.setItem(key, value); } public async removeItem(key: string): Promise<void> { await this.storage.removeItem(key); } public async clearAllItems(): Promise<void> { await this.storage.clear(); } }