0.6.1 • Published 2 years ago

@toruslabs/torus-direct-react-native-sdk v0.6.1

Weekly downloads
280
License
MIT
Repository
-
Last release
2 years ago

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

iOS

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

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 '@toruslabs/torus-direct-react-native-sdk';

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

2 years ago

0.6.0

2 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago