React Native

Learn how to add Adapty React Native SDK to your project

Run the installation command:

❗️

Read Checklist before releasing your app

Be sure to carefully read Release Checklist when releasing your app. It's critical to make things right from the first attempt!

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

Install required iOS pods:

pod install --project-directory=ios

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?