Posts

Showing posts with the label react native local database

How to Add Local Database in React Native

Image
  Introduction Data is the most important part in any software or program. If a program or software is not that big in scope, data is stored in variables. But the main drawback of that is that storing data in variable data will be destroyed or reset to its first value when the program or software restarts. The database is a solution for that it saves data and after even restarting software we can fetch stored data. There are many types of databases like relational databases, NoSQL databases, columnar databases, object-oriented databases, document databases, graph databases, etc. In react native, we can use any of those databases based on the project's requirements. There are many options to use databases in react native projects like Async Storage, SQLite, Realm, PouchDB, etc. In this article, we will use the most popular relational database SQLite. Pre-requisites Basic Knowledge of JavaScripts Basic Knowledge of  React Native Familiarity with a package manager like npm o...