The minimalistic document archiving platform.
import AsyncStorage from '@react-native-async-storage/async-storage';
export const storage = {
getItem: async (key: string) => AsyncStorage.getItem(key),
setItem: async (key: string, value: string) => AsyncStorage.setItem(key, value),
removeItem: async (key: string) => AsyncStorage.removeItem(key),
clear: async () => AsyncStorage.clear(),
};