Check out example codes for "sqlite vs mysql". It will help you in understanding the concepts better.
Code Example 1
SQLite is a public domain, open-source project.It is what is called an “embedded” database which means the DB engine runs as part of your app. MySQL is also open-source but is owned by Oracle. MySQL is a database server so you have to install it somewhere and then connect to it from your app.
Learn ReactJs, React Native from akashmittal.com