andpor / react-native-sqlite-storage

Full featured SQLite3 Native Plugin for React Native (Android and iOS)
MIT License
2.75k stars 521 forks source link

pre-populated database android not working #498

Closed sajadspeed closed 2 years ago

sajadspeed commented 2 years ago

I put the database file in assets and did the following:

var db = SQLite.openDatabase({name : "players.db", createFromLocation : "~example.db", location: 'Library'});

it's work but when I got the apk output, it did not work and did not have any tables in the database at all. There is no error to open the database, but there is no data.

Please help me, I could not find a solution to this problem

sajadspeed commented 2 years ago

Problem solved. It's problem for other reasons. Thank you