Search code examples
javascriptiosreact-nativerealm

Find path for Realm file with Realm React Native to use with 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)

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


Solution

  • Just found the answer myself by digging through the docs:

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