@anwar1909/react-native-bluetooth-escpos-printer
v0.1.0
Published
Fork of react-native-bluetooth-escpos-printer with JackPOS BLE/ESC/POS optimizations (fast image transfer, RN 0.78 Android).
Downloads
16
Maintainers
Readme
@anwar1909/react-native-bluetooth-escpos-printer
Fork of react-native-bluetooth-escpos-printer (0.0.5) with JackPOS production fixes and performance optimizations for Android BLE thermal printers (EP8082, VSC, TSPL).
Install
npm install @anwar1909/react-native-bluetooth-escpos-printer
# or
yarn add @anwar1909/react-native-bluetooth-escpos-printerRebuild the native app after install (yarn android / pod install).
API
Same as the upstream package:
import {
BluetoothManager,
BluetoothEscposPrinter,
BluetoothTscPrinter,
} from '@anwar1909/react-native-bluetooth-escpos-printer';JackPOS changes (0.1.0+)
BLE / ESC/POS image print (Android)
writeBulk()— large ESC/POS payloads skip per-write settle sleep (avoids double-delay with chunking).- Chunked transfer — 1024 bytes/chunk, 8 ms inter-chunk delay (was 240 B / 120 ms upstream).
printRawBytes— uses the same fast chunked path.PrintPicture.eachLinePixToCmdBatched— 32 rows per GSv 0stripe (faster BLE + faster physical print vs 1 row/command).
React Native 0.76–0.78 Android
namespace,compileSdk 35,androidx.core, modern GradlesafeExtGetdefaults.- Bluetooth permissions / connect flow patches in
RNBluetoothManagerModule. - TSPL label print improvements for large bitmaps.
New native methods (JackPOS)
BluetoothEscposPrinter.printImageBase64(base64, options)—width,left,feedAfter,skipInit,trimWhite,cropTopPx.BluetoothEscposPrinter.printRawBytes(base64)— raw ESC/POS bytes.
Credits
Original library by janus j k lu (MIT). JackPOS fork maintained by anwar1909.
License
MIT — see LICENSE.
