I want to create a React Native app that persists local data and then syncs to the server. Please help me to find a way for this.
Advertisement
Answer
React Native provides methods to persist data. Some are provided out of the box while others are libraries you have to install and use. Below are popular methods of persisting data in React Native
- AsyncStorage
- React Native SQLite 2
- Realm
- React Native Local MongoDB
refer https://pusher.com/tutorials/persisting-data-react-native