Skip to content

rayan1810/react-native-localstorage-polyfill

Repository files navigation

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

About

Adds polyfill for localstorage using async storage

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published