Skip to content

Wrapper around (Expo) SecureStore, (React Native) AsyncStorage (in Expo Go), and (react-native-)MMKV (in bare/standalone/dev client React Native/Expo apps)

License

Notifications You must be signed in to change notification settings

ScienceArtMagic/UPS

Repository files navigation

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

About

Wrapper around (Expo) SecureStore, (React Native) AsyncStorage (in Expo Go), and (react-native-)MMKV (in bare/standalone/dev client React Native/Expo apps)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published