(Universal Persistence Storage)
Conditional imports of react-native-mmkv (React Native and Expo Bare/Standalone/Dev Client), @react-native-async-storage/async-storage and expo-secure-store (Expo Go), and localforage (web/Electron, unified API for localStorage, IndexedDB, and WebSQL, defaults to IndexedDB) with a simplified, unified API similar to that of AsyncStorage (namely getItem()
, setItem()
, removeItem()
)
npm i
or yarn add
@scienceartmagic/ups react-native-mmkv expo-secure-store @react-native-async-storage/async-storage localforage