1.0.1 • Published 3 years ago

react-native-bixolon-bluetooth-printer v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

react-native-bixolon-bluetooth-printer

Getting started

$ npm install react-native-bixolon-bluetooth-printer --save

Mostly automatic installation

$ react-native link react-native-bixolon-bluetooth-printer

Manual installation

Android

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

Usage

import RNBixolonBluetoothPrinter from 'react-native-bixolon-bluetooth-printer';

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