Skip to main content

Install the SDK

Install the airborne-react-native package and register the Airborne Maven repository so Android can resolve the native SDK. After this, continue with the native Android and iOS setup.

Add the dependency​

Add airborne-react-native to your package.json:

{
"dependencies": {
"airborne-react-native": "^0.37.0"
}
}

Then install:

npm install
tip

You can also add it directly with npm install airborne-react-native@^0.37.0 (or the yarn/pnpm equivalent), which updates package.json for you.

Install iOS pods​

The package ships native iOS code, so install pods after adding the dependency:

cd ios && pod install

If you use the React Native community CLI, npx pod-install works as well.

Add the Airborne Maven repository (Android)​

The native Android SDK is distributed from Airborne's Maven repository. Add it to your Android Gradle configuration so the dependency can be resolved.

If your project declares repositories in android/build.gradle (under allprojects { repositories { ... } }):

allprojects {
repositories {
maven { url "https://maven.juspay.in/jp-build-packages/hyper-sdk/" }
}
}

If your project uses the newer Gradle settings model, add it to android/settings.gradle instead (under dependencyResolutionManagement { repositories { ... } }):

dependencyResolutionManagement {
repositories {
maven { url "https://maven.juspay.in/jp-build-packages/hyper-sdk/" }
}
}
caution

Add the repository in exactly one place. If dependencyResolutionManagement is configured with RepositoriesMode.FAIL_ON_PROJECT_REPOS, declaring repositories in build.gradle will fail the build — put the Maven URL in settings.gradle instead.

Next​

Continue with Android setup.