1.0.3 • Published 4 years ago
react-native-pos-print-pax v1.0.3
react-native-pos-print-pax
Getting started
$ npm install react-native-pos-print-pax --save
Mostly automatic installation
$ react-native link react-native-pos-print-pax
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.posprintpax.RNPosPrintPaxPackage;
to the imports at the top of the file - Add
new RNPosPrintPaxPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-pos-print-pax' project(':react-native-pos-print-pax').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-pos-print-pax/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-pos-print-pax')
Usage
import Pax from 'react-native-pos-print-pax';
// TODO: What to do with the module?
Pax;