Setup
Add AATKit to your React Native app
NPM Installation
Install the package:
npm i @addapptr/react-native-aatkit
Follow additional steps to complete the installation for Android platform.
Android: Enable multidex if needed
Please see more information about multidex here.
Edit the
android/app/build.gradle
file:
android {
defaultConfig {
...
multiDexEnabled true
}
...
}
dependencies {
implementation 'androidx.multidex:multidex:2.0.1'
}
Add this code to the
android/app/src/main/java/com/YOUR_PACKAGE/MainApplication.java
file:
import android.content.Context;
import androidx.multidex.MultiDex;
...
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
Last updated