react-native-verifone-driver
v1.0.50
Published
## Getting started
Downloads
32
Readme
react-native-verifone-driver
Getting started
$ npm install react-native-verifone-driver --save
Mostly automatic installation
$ react-native link react-native-verifone-driver
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNVerifoneDriverPackage;
to the imports at the top of the file - Add
new RNVerifoneDriverPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-verifone-driver' project(':react-native-verifone-driver').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-verifone-driver/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-verifone-driver')
Usage
import RNVerifoneDriver from 'react-native-verifone-driver';
RNVerifoneDriver;