Installation

Learn how to add Adapty React Native SDK to your project

Run the installation command:

yarn add react-native-adapty
npm i react-native-adapty --save

Install required iOS pods:

cd ios && pod install && cd ../

Update /android/build.gradle file. Make sure there is a kotlin-gradle-plugin:1.4.0 dependency or newer:

...
buildscript {
  ...
  dependencies {
    ...
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.0"
  }
}
...

Update android/app/build.gradle file. Make sure multiDex is enabled:

...
android {
  ...
  defaultConfig {
    ...
    multiDexEnabled true
  }
}

🚧

Expo-managed applications CANNOT use this library. In order to use this SDK, you have to eject to Expo bare workflow.


Did this page help you?