react-native-blc-braintree

1.0.79 • Public • Published

react-native-blc-braintree

Getting started

$ npm install react-native-blc-braintree --save

Mostly automatic installation

$ react-native link react-native-blc-braintree

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-blc-braintree and add RNBlcBraintree.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNBlcBraintree.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 com.reactlibrary.RNBlcBraintreePackage; to the imports at the top of the file
  • Add new RNBlcBraintreePackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-blc-braintree'
    project(':react-native-blc-braintree').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-blc-braintree/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-blc-braintree')
    

Windows

Read it! :D

  1. In Visual Studio add the RNBlcBraintree.sln in node_modules/react-native-blc-braintree/windows/RNBlcBraintree.sln folder to their solution, reference from their app.
  2. Open up your MainPage.cs app
  • Add using Blc.Braintree.RNBlcBraintree; to the usings at the top of the file
  • Add new RNBlcBraintreePackage() to the List<IReactPackage> returned by the Packages method

Usage

import RNBlcBraintree from 'react-native-blc-braintree';

// TODO: What to do with the module?
RNBlcBraintree;

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i react-native-blc-braintree

      Weekly Downloads

      13

      Version

      1.0.79

      License

      none

      Last publish

      Collaborators

      • dileepbolisetti