#16299

سلام باید مراحل زیر رو طی کنید
Add the following lines to android/settings.gradle:

include ‘:realm’
project(‘:realm’).projectDir = new File(rootProject.projectDir, ‘../node_modules/realm/android’)

Add the compile line to the dependencies in android/app/build.gradle:

dependencies {
compile project(‘:realm’)
}

Add the import and link the package in MainApplication.java:

import io.realm.react.RealmReactPackage; // add this import

public class MainApplication extends Application implements ReactApplication {
@Override
protected List getPackages() {
return Arrays.
asList(
new MainReactPackage(),
new RealmReactPackage() // add this line
);
}
}
میتونید به لینک زیر مراجعه کنید و نحوه نصب دستی realm رو از روی داکیوکنت پیش برید
نصب realm در React Native