1.0.0 • Published 5 years ago

rn-meda-pay v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

react-native-meda-pay

Getting started

$ npm install react-native-meda-pay --save

Mostly automatic installation

$ react-native link react-native-meda-pay

Manual installation

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNMedaPayPackage; to the imports at the top of the file

  • Add new RNMedaPayPackage() to the list returned by the getPackages() method

  1. Append the following lines to android/settings.gradle:
include ':react-native-meda-pay'

project(':react-native-meda-pay').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-meda-pay/android')
  1. Insert the following lines inside the dependencies block in android/app/build.gradle:
implementation project(':react-native-meda-pay')

Usage

import  RNMedaPay  from  'react-native-meda-pay';

  

// TODO: What to do with the module?

RNMedaPay.pay(conf);