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 --save

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

// Podfile

...

platform :ios, '11.0'

...

Google Play Billing

Google is not provided by default as you have a choice on Android To add Google as a store, you can use our NPM dependency

npm install @purchasely/react-native-purchasely-google --save

Android Video Player

If you have videos in your paywall, you must provide a video player to play them. Since version 3.1.0, Purchasely core dependency does not include a video player for Android to avoid dependency conflicts. We provide a new player dependency which will be detected automatically by our SDK.

You can also provide your own player view, more information in our help center

Huawei Mobile Services

To add Huawei as a store, you can use NPM

Amazon In-App Purchases

To add Amazon as a store, you can use NPM

Last updated

Was this helpful?