- create a database using SQLite.openDatabase()
- connect to device via adb shell and manually delete the database
- reload the app
- database file is not recreated (even though SQLite.openDatabase code is executed again)
- queries do not fail with error. Just returns 0 result.
Is it openDatabase loads it into memory? How do we force it to physically check if database file is present?
On the same note, what is the recommended way to delete a local sqlite db?
If I press the restart button in XDE and the project rebuilds, it seems to recreate the db.
On the android device, If I navigate to settings->app-> expo and click Force Stop, it seems to recreate the database file.