Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 814 Bytes

File metadata and controls

51 lines (32 loc) · 814 Bytes

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