react-native-db-models
react-native-db-models copied to clipboard
Precist Data in application
trafficstars
Its more of a query then a problem , that how can we precist data among multiple launches of an application.
var DB = { "app": new RNDBModel.create_db('app'), "users": new RNDBModel.create_db('users'), }
aint this will recreate DB every time app is launched.
It will not. I had a look at the create_db code in index.js, and it doesn't actually create/overwrite anything except the DB operation functions themselves.