Skip to content

Latest commit

 

History

History
10 lines (5 loc) · 606 Bytes

README.md

File metadata and controls

10 lines (5 loc) · 606 Bytes

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