0.1.6 • Published 4 years ago

rn-tsc-printer v0.1.6

Weekly downloads
2
License
GNU
Repository
github
Last release
4 years ago

rn-tsc-printer

TSC Printer SDK for React-Native

Requirements

React-Native 0.60+

Install

$ yarn add rn-tsc-printer --save

iOS

  1. Not implemeted yet

Android

  1. 🙏

How to use

import TSCPrinter from 'rn-tsc-printer';
  1. Create printer instance
const printer = new TSCPrinter({
	ip: "192.168.1.39",
	port: 9100,
	paperWidth: 60,
	paperHeight: 30,
});
  1. Print
	await printer.open()
	await printer.clear()
	await printer.setup()
	await printer.barcode({
		x: 20,
		y: 20,
		height: 100,
		narrow: 2,
		wide: 0,
		printText: false,
		rotation: 0,
		type: '128',
		code: '1234567890'
	})
	await printer.print(1,1)
    await printer.close()

TODO

  1. iOS sdk implementation
  2. image upload
0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago