React Native SDK
Guide for integrating Purchasely SDK inside your React Native app
Installation
NPM
You can use NPM to install Purchasely
npm install react-native-purchasely --saveDon't forget to change the minimum OS versions to match Purchasely requirements (iOS 11 / Android 21)
For Android, no store is included by default, you have to add the ones you wish to use, please see below
// Podfile
...
platform :ios, '11.0'
...// Edit file android/build.gradle
buildscript {
    ext {
        minSdkVersion = 21 //min version must not be below 21
        compileSdkVersion = 31
        targetSdkVersion = 31
    }
}
allprojects {
    repositories {
        mavenCentral()
    }
}Google Play Billing
To add Google as a store, you can use NPM
npm install @purchasely/react-native-purchasely-google --saveHuawei Mobile Services
To add Huawei as a store, you can use NPM
npm install @purchasely/react-native-purchasely-huawei --saveAmazon In-App Purchases
To add Amazon as a store, you can use NPM
npm install @purchasely/react-native-purchasely-amazon --saveLast updated
Was this helpful?
