Hello Friends đź‘‹,

Welcome To Infinitbility! ❤️

React native SQLite storage is one of the most used packages to use SQLite in react native and I have already shared an example to use sqlite with populated database.

Now, in this tutorial, i will share how we can use the SQLite database without adding the .db file in the www directory.

I mean How to create SQLite database at runtime in react native?

when we follow web SQL syntax to connect SQLite database, it will maintain the database in memory.

var db = SQLte.openDatabase("test.db", "1.0", "Test Database", 200000, () => { console.log("Connected") }, (err) => { console.log(err) });

Note: it will not create any test.db file in the assets folder.

follow below documentation for query examples.

React Native sqlite storage CRUD example

Thanks for reading…