2

I have a web app that I want to convert to an native app with react native.

So I started the project and all the logic is the same as the web-app but i don't know how to use the local storage of the app instead the browser.

Dnailsa
  • 109
  • 1
  • 1
  • 6
  • 2
    Possible duplicate https://stackoverflow.com/questions/47509558/how-to-store-value-in-localstorage-in-react-native – esnezz Jun 26 '20 at 14:41
  • 1
    Does this answer your question? [How to store value in LocalStorage in React Native](https://stackoverflow.com/questions/47509558/how-to-store-value-in-localstorage-in-react-native) – Roshin Raphel Jun 26 '20 at 18:59

1 Answers1

1

you can't use localstorage in react native. Asyncstorage is provided in react-native. https://reactnative.dev/docs/asyncstorage

You can install package for that from this link. https://www.npmjs.com/package/@react-native-async-storage/async-storage

Hope this will help you.

cocoa
  • 350
  • 1
  • 2
  • 10