0.1.4 • Published 3 years ago

torus-direct-react-native-sdk v0.1.4

Weekly downloads
11
License
MIT
Repository
-
Last release
3 years ago

torus-direct-react-native-sdk

Getting started

$ npm install torus-direct-react-native-sdk --save

Mostly automatic installation

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

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulestorus-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)<

Android

  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')

Usage

import RNTorusDirectSdk from 'torus-direct-react-native-sdk';

// TODO: What to do with the module?
RNTorusDirectSdk;
0.1.4

3 years ago

0.1.2

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

4 years ago