cjd-rn-printer-plugin-test

1.0.0 • Public • Published

react-native-printer

Getting started

$ npm install react-native-printer --save

Mostly automatic installation

$ react-native link react-native-printer

Manual installation

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.chuangjiangx.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 ':react-native-printer'
    project(':react-native-printer').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-printer/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-printer')
    

Usage

import RNPrinter from 'react-native-printer';

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

Readme

Keywords

Package Sidebar

Install

npm i cjd-rn-printer-plugin-test

Weekly Downloads

0

Version

1.0.0

License

none

Unpacked Size

76.5 kB

Total Files

26

Last publish

Collaborators

  • ysq