rn-meda-pay
v1.0.0
Published
meda pay for react native
Downloads
2
Readme
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
- Open up
android/app/src/main/java/[...]/MainActivity.java
Add
import com.reactlibrary.RNMedaPayPackage;
to the imports at the top of the fileAdd
new RNMedaPayPackage()
to the list returned by thegetPackages()
method
- 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')
- 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);