react-native-star-printer
v0.1.6
Published
React Native Star Micronics mPOP POS SDK for iOS + Android.
Downloads
15
Maintainers
Readme
react-native-react-native-star-printer
Getting started
$ npm install react-native-react-native-star-printer --save
Mostly automatic installation
$ react-native link react-native-react-native-star-printer
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-react-native-star-printer
and addRNReactNativeStarPrinter.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNReactNativeStarPrinter.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNReactNativeStarPrinterPackage;
to the imports at the top of the file - Add
new RNReactNativeStarPrinterPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:
include ':react-native-react-native-star-printer'
project(':react-native-react-native-star-printer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-react-native-star-printer/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:
compile project(':react-native-react-native-star-printer')
Usage
import RNReactNativeStarPrinter from 'react-native-react-native-star-printer';
// TODO: What to do with the module?
RNReactNativeStarPrinter;
TODO
- [ ] add custom value of invoice printing
- [ ] list all event/result and status for better development experiences.
- [ ] add a select menu for choose target printer.
- [ ] implement iOS SDK
- [x] implement Android SDK