NBDKhoa
NBDKhoa

Reputation: 151

How can I export Realm database to a file in react native?

I am building a react native app using Realm database. I want to export the realm database to a single file and then later import that file by another mobile device. How can I export and import Realm database in react native?

Upvotes: 0

Views: 1257

Answers (1)

hong developer
hong developer

Reputation: 13906

This currently does not allow files to be exported via code within the React-native. The Realm module does not currently have that capability.

However, you can move the file yourself, copy it, and put it in the Realm library in another project to check it on another device. Or you can save the file and then use the Realm studio program to check the data.

file path

file realm

Upvotes: 1

Related Questions