4

Is it possible to print text to bluetooth printer using react native? There are libraries for bluetooth ble, but it's not clear how to do that.

Some ble library and this too

Thanks a lot for your response

bubleh
  • 368
  • 3
  • 12

1 Answers1

9

I found the function by using react-native-bluetooth-serial, the example is working with some changes. But in the documentation, it's not clear how to do print. Just use the write function in the example, write parameter is string. Add the '\n' after write parameter and it will work.

bubleh
  • 368
  • 3
  • 12
  • Can this be used to print to any bluetooth capable thermal printer (such as in link below) without having to delve into java-level programming with the accompanying SDK? [link](https://www.aliexpress.com/item/GOOJPRT-PT-210-58MM-Bluetooth-Thermal-Printer-Portable-Wireless-Receipt-Machine-For-Windows-Android-iOS/32829535338.html) – user1729972 Aug 30 '18 at 09:02