How to package a realm database on react native app

Hi, I have a realm database with a lot of data. I need to know how can I pre-package the realm database with my react-native app. I try to put the realm file (default.realm) in the follow root:


and then in the constructor call this function:


but it always shows 0 items. Anyone knows how to do it?


If you create your bundle using Gradle, make sure that your doesn’t have org.gradle.configureondemand=true (see also