1.0.12-2.4 • Published 6 years ago

rn-printer v1.0.12-2.4

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
6 years ago

rn-printer

Getting started

$ npm install rn-printer --save

Mostly automatic installation

$ react-native link rn-printer

Manual installation

Android

  1. Open up android/app/src/main/java/[...]/MainApplication.java
  • Add import com.sanpyaelin.printer.RNPrinterPackage; to the imports at the top of the file
  • Add new RNPrinterPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':rn-printer'
    project(':rn-printer').projectDir = new File(rootProject.projectDir, 	'../node_modules/rn-printer/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':rn-printer')

Usage

import {USBPrinter} from 'rn-printer';

// TODO: What to do with the module?
RNPrinter;
1.0.12-2.4

6 years ago

1.0.12-2.3

6 years ago

1.0.12-2.2

6 years ago

1.0.12-2.1

6 years ago

1.0.122

6 years ago

1.0.120

6 years ago

1.0.119

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago