react-native-localstorage-polyfill
v0.1.1
Published
Adds polyfill for localstorage using async storage
Downloads
16
Readme
react-native-localstorage-polyfill
Adds polyfill for localstorage using async storage
Installation
npm install react-native-localstorage-polyfill
Install peer dependencies
npm install @react-native-async-storage/async-storage
Linking
React Native 0.60 and above
npx pod-install
React Native 0.59 and below
react-native link @react-native-async-storage/async-storage
Usage
Simply import react-native-localstorage-polyfill in the root of your app
import 'react-native-localstorage-polyfill';
localStorage.setItem('key', 'value');
localStorage.getItem('key');
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT