Skip to main content

Setup

Learn how to set up the React Native SDK.

GitHub release

This package is published privately to GitHub packages.

Before you begin​

Before using our React Native SDK, you must authenticate npm or yarn with GitHub.

Adding dependencies​

To add the dependencies to your environment:

  1. Add the package to your project.
npm install https://github.com/dojo-engineering/react-native-pay-sdk/ 
  1. According to your environment, add the following dependencies to your project:

Add the native dependencies to your Podfile:

Podfile
pod 'dojo-ios-sdk-drop-in-ui', :git => 'git@github.com:dojo-engineering/dojo-ios-sdk-drop-in-ui.git', :tag => '1.3.2'
pod 'dojo-ios-sdk', :git => 'git@github.com:Dojo-Engineering/dojo-ios-sdk.git', :tag => '1.4.0'
info

Ensure that you exclude payment-related fields from tracking if you are using screen recording or session recording services like LogRocket or UXCam. You can do that by setting themeSettings.analyticsExcludedFieldsIdentifier with your identifier value.