@scienceartmagic/ups
v0.0.6
Published
UPS (Universal Persistence Storage): Wrapper around persistence libraries for use in Expo Go, bare/standalone Expo/React Native apps, and web/Electron
Downloads
28
Readme
UPS
(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()
)
Install (including peerDependencies)
npm i
or yarn add
@scienceartmagic/ups react-native-mmkv expo-secure-store @react-native-async-storage/async-storage localforage