react-native-brother-printing
v0.0.1
Published
A package that allows you to printer with brother printers
Downloads
89
Maintainers
Readme
react-native-brother-printing
React Native Brother Printing is a react-native module that will allow you to print labels on Brother printers via Wifi and Bluetooth.
Getting started
$ npm install react-native-brother-printing --save
or
$ yarn add react-native-brother-printing
Mostly automatic installation
$ cd ios; pod install
or if you are using React Native before version 0.60,
$ react-native link react-native-brother-printing
Usage
Printing via Bluetooth
To discover printers use the discoverPrinters function. You can pass in the option parameters printerName
to change
the printer name, or V6 to enable ipv6 detection. Both parameters can be left blank.
import { printImageViaBluetooth } from "react-native-brother-printing";
const modelName = 'QL-820NWB';
printImageViaBluetooth(imageUri, modelName)
Printing via Wifi
import { printImageViaWifi } from "react-native-brother-printing";
const ipAddress = '192.168.1.18';
const modelName = 'QL-820NWB';
printImageViaWifi(imageUri, ipAddress, modelName)
Influence
This library is influenced by react-native-brother-printers.