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