react-native-star-printer

0.1.6 • Public • Published

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

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-react-native-star-printer and add RNReactNativeStarPrinter.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNReactNativeStarPrinter.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

  1. 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 the getPackages() method
  1. 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')
  1. 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
  • implement Android SDK

Package Sidebar

Install

npm i react-native-star-printer

Weekly Downloads

0

Version

0.1.6

License

MIT

Unpacked Size

98.3 MB

Total Files

2023

Last publish

Collaborators

  • iamcxa