React Native sdk for torus direct

Usage no npm install needed!

<script type="module">
  import toruslabsTorusDirectReactNativeSdk from 'https://cdn.skypack.dev/@toruslabs/torus-direct-react-native-sdk';



Getting started

$ npm install @toruslabs/torus-direct-react-native-sdk --save

Please refer to the native sdks for specific configuration.

More info can be found on docs here

Mostly automatic installation

$ react-native link torus-direct-react-native-sdk

Manual installation


  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modules@toruslabs/torus-direct-react-native-sdk and add RNTorusDirectSdk.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNTorusDirectSdk.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<


  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import org.torusresearch.rntorusdirect.RNTorusDirectSdkPackage; to the imports at the top of the file
  • Add new RNTorusDirectSdkPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':torus-direct-react-native-sdk'
    project(':torus-direct-react-native-sdk').projectDir = new File(rootProject.projectDir, 	'../node_modules/torus-direct-react-native-sdk/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':torus-direct-react-native-sdk')


import RNTorusDirectSdk from '@toruslabs/torus-direct-react-native-sdk';

// TODO: What to do with the module?