使用Realm React Native查找Realm文件的路径以与Realm Browser一起使用

问题描述:

在iOS上,可以通过打开相应的文件来检查 Realm 数据库的内容。 Realm Browser 。可以使用以下代码行打印该文件的路径(如此处):

On iOS, it is possible to inspect the contents of a Realm database by opening the corresponding file with the Realm Browser. The path to that file can be printed by using the following line of code (as noted here):

print(Realm.Configuration.defaultConfiguration.path)

使用Rem Native版本的Realm时是否可以这样做?

Is it possible to do the same when using the React Native version of Realm?

通过挖掘 docs

console.log('create db:', db.path)