Purchasely
2.8
2.8
  • Welcome page
  • General
    • Presentation
  • Quick test
    • Test in 5 minutes
  • Basic configuration
    • Console Configuration
      • Creating a new application
      • Creating your Products
        • App Store
        • Play Store
        • Huawei App Gallery
        • Amazon App Store
        • Products & Plans
      • Design your Paywalls
    • SDK installation
      • iOS SDK
      • Android SDK
      • React Native SDK
      • Cordova SDK
    • SDK configuration
    • Webhook
      • Receiving and understanding messages
      • Managing entitlements
      • Subscription events
      • Events attributes
      • Detailed sequence diagrams
    • Observer mode
  • Dashboards
    • Introduction
    • Live
    • Subscriptions
    • Cohorts
    • Trials
    • Events
  • S2S notifications
    • Server-to-server notifications ?
    • App Store
    • Play Store
    • Huawei App Gallery
    • Amazon App Store
  • Integrations
    • Airship
    • Amplitude
    • Braze
    • Firebase
  • Advanced Features
    • Anonymous user
    • Associating content
    • Customising UI
      • Errors & alerts
      • Controllers (iOS) / Fragments (Android)
    • Deeplinks automations
    • Displaying users subscriptions
    • UI Analytics
    • Localization
    • Non-subscription products
    • Promoting your products
      • Self-promotion
      • Promoting In-App Purchases
    • Purchase interceptor
    • Purchase manually
    • Subscription status
    • Paywall Guidelines
  • Others
    • Frequently Asked Questions
    • Migration guides
      • Migrate to Purchasely
      • SDK
        • v2.1.3
        • v2.2.0
      • Webhooks
        • v3.0
  • TESTING
    • Testing Cycle Durations
Powered by GitBook

© Purchasely 2020-2023

On this page
  • Installation
  • NPM
  • Huawei Integration

Was this helpful?

  1. Basic configuration
  2. SDK installation

React Native SDK

Guide for integrating Purchasely SDK inside your React Native app

PreviousAndroid SDKNextCordova SDK

Last updated 3 years ago

Was this helpful?

Installation

NPM

You can use to install Purchasely by adding it to your Podfile:

npm install react-native-purchasely --save

Don't forget to change the minimum OS versions to match Purchasely requirements (iOS 11 / Android 21)

// Podfile

...

platform :ios, '11.0'

...
// Edit file android/build.gradle
buildscript {
    ext {
        minSdkVersion = 21 //min version must not be below 21
        compileSdkVersion = 30
        targetSdkVersion = 30
    }
}

allprojects {
    repositories {
        mavenCentral()
    }
}

-------
//Edit file android/app/build.gradle
dependencies {
    //Add this line to integrate Google Play Billing
    implementation 'io.purchasely:google-play:2.8.0'
}

Huawei Integration

To integrate Huawei Mobile Services, please refer to our Android documentation :

NPM
https://docs.purchasely.com/quick-start/sdk-installation/quick-start#huawei-mobile-services