There are several ways to manage data throughout an app, and the best choice depends on the complexity of an app. When in doubt, start simple, and as your application grows in complexity, use something more advanced.
Common options for managing data
Here are a few options worth considering for managing your data.
|useReducer||React provides a hook for storing data. This is a great place to start.|
|Redux||Redux provides a |
|MobX||State management through "functional reactive programming". MobX was designed for use with React, and provides utilities like observables to manage state changes.|
|Realm||The Realm library uses a custom database, written from scratch in C to be compatible on both iOS and Android. Realm is suitable for apps with a tremendous amount of data (10,000+ records). If an app can't fit all its data in RAM, using a database makes it easy to page records in and out, or search without loading all data into memory.|
Want to learn React Native in-depth?