npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-native-pos

v1.0.1

Published

This library only supports Android and works with Select Android pos only

Readme

Z90 Android Pos Library with React Native

This library only supports Android and works with Select Android pos only

Installation

$ yarn add react-native-pos $ react-native link

Usage

import Pos from 'react-native-pos';

function PosInterface() {
	const print = () => {
		Pos.getPrinterStatus()
		Pos.setBoldFont();
		Pos.setCenterAlign();
		Pos.setFontSize(32);
		Pos.addText('Hello World');
		Pos.addQRCode(JSON.stringify({ url: 'https://honeyguideapps.com' }));
		const res = await Pos.print();
		if (!res) {
			alert('Out of paper');
		}
	}
}

Available Status Values

Use getPrinterStatus.

int SDK_OK = 0;
int SDK_ERROR = -1001;
int SDK_PARAMERR = -1002;
int SDK_TIMEOUT = -1003;
int SDK_RECV_DATA_ERROR = -1004;
int SDK_ICC_BASE_ERR = -1200;
int SDK_ICC_ERROR = -1201;
int SDK_ICC_PARAM_ERROR = -1202;
int SDK_ICC_NO_CARD = -1203;
int SDK_ICC_NO_RESP = -1204;
int SDK_ICC_COMM_ERR = -1205;
int SDK_ICC_RESP_ERR = -1206;
int SDK_ICC_NO_POWER_ON = -1207;
int SDK_RF_BASE_ERR = -1300;
int SDK_RF_ERROR = -1301;
int SDK_RF_PARAM_ERROR = -1302;
int SDK_RF_ERR_NOCARD = -1303;
int SDK_RF_ERR_CARD_CONFLICT = -1304;
int SDK_RF_TIME_OUT = -1305;
int SDK_RF_PROTOCOL_ERROR = -1306;
int SDK_RF_TRANSMISSION_ERROR = -1307;
int SDK_MAG_BASE_ERR = -1100;
int SDK_MAG_ERROR = -1101;
int SDK_MAG_PARAM_ERROR = -1102;
int SDK_MAG_NO_BRUSH = -1103;
int SDK_PRN_BASE_ERR = -1400;
int SDK_PRN_ERROR = -1401;
int SDK_PRN_PARAM_ERROR = -1402;
int SDK_PRN_STATUS_PAPEROUT = -1403;
int SDK_PRN_STATUS_TOOHEAT = -1404;
int SDK_PRN_STATUS_FAULT = -1405;
int SDK_PRN_STATUS_PRINTING = -1406;
int SDK_PAD_BASE_ERR = -1500;
int SDK_PAD_ERR_NOPIN = -1510;
int SDK_PAD_ERR_CANCEL = -1511;
int SDK_PAD_ERR_TIMEOUT = -1512;
int SDK_PAD_ERR_NEED_WAIT = -1513;
int SDK_PAD_ERR_DUPLI_KEY = -1514;
int SDK_PAD_ERR_INVALID_INDEX = -1515;
int SDK_PAD_ERR_NOTSET_KEY = -1516;
int SDK_PAD_ERR_EXCEPTION = -1517;