Adds polyfill for localstorage using async storage
npm install react-native-localstorage-polyfillAdds polyfill for localstorage using async storage
``sh`
npm install react-native-localstorage-polyfill
`sh`
npm install @react-native-async-storage/async-storage
#### React Native 0.60 and above
`sh`
npx pod-install
#### React Native 0.59 and below
`sh`
react-native link @react-native-async-storage/async-storage
Simply import react-native-localstorage-polyfill in the root of your app
`js`
import 'react-native-localstorage-polyfill';
`js
localStorage.setItem('key', 'value');
localStorage.getItem('key');
``
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT