januslo / react-native-bluetooth-escpos-printer

React-Native plugin for the bluetooth ESC/POS & TSC printers.
MIT License
361 stars 420 forks source link

how to printer barcode? #59

Closed PhamMinhKha closed 4 years ago

PhamMinhKha commented 5 years ago

printBarCode(String str,int nType, int nWidthX, int nHeight, int nHriFontType, int nHriFontPosition) please give me a simple code use this code. I don't know how to pass parameters nType, nHriFontType and nHriFontPosition

vikaskbh commented 4 years ago

Try this, await BluetoothEscposPrinter.printBarCode('VIKAS', 73, 3, 100, 0, 2); // barcode