@moveaxlab/react-native-thermal-printer
v1.1.0
Published
React native integration with POS printers
Downloads
48
Keywords
Readme
react-native-thermal-printer
Getting started
To install the library run the following command:
npm install react-native-thermal-printer --save
Then add this repositories to your android/build.gradle
allprojects {
repositories {
// ...
maven {
url 'https://nexus.poynt.com/content/repositories/releases'
}
// ...
}
}
Usage
import ThermalPrinter from 'react-native-thermal-printer';
const printer = new ThermalPrinter();
printer.initialize().then(() => {
printer.addText("Welcome to react-native-thermal-printer!");
printer.print()
.then(() => console.log('Print completed!'))
.catch(e => console.log(e))
}).catch((e) => {
console.log(e);
});
Supported devices
- PAX A910/A920
- Newland N910 (Nexi and Poynt terminals)
Exceptions
The getStatus
method it's only available for the PAX Printer