react-native-sqlite-storage icon indicating copy to clipboard operation
react-native-sqlite-storage copied to clipboard

Copy the real database to the Downloads folder and transfer to another device

Open baharb opened this issue 4 years ago • 0 comments

Hi I want to sync two database in two phones together. I tried to copy database to Download folder and then transfer to another phone. I make a folder in assets folder and used this : SQLite.openDatabase({name: 'zagrosDB', createFromLocation: '~db/zagrosDB.db'})

I have two problems:

  1. when I copy database from assets to downloads folder, that's not real database with all of its data.
  2. When I send database to another device, I can't save it to assets folder.

Is there anything wrong?

baharb avatar Jul 20 '21 15:07 baharb