thiendangit / react-native-thermal-receipt-printer-image-qr

React native thermal receipt printer
https://www.npmjs.com/package/react-native-thermal-receipt-printer-image-qr
120 stars 81 forks source link

How to print text on the left and an image on the right? #68

Open MarkCay opened 2 years ago

MarkCay commented 2 years ago

Hello. I need help printing a specific template on my Bluetooth thermal printer, but I can't find the documentation about printing a text and image in the same row.

This is the type of receipt I want to achieve on an Android device: Template #2

In a single row, there will be 2 columns:


Printer Specs

I hope you can help me. Thank you in advance!

thiendangit commented 2 years ago

I think you should use the library: https://www.npmjs.com/package/react-native-view-shot to capture your screen and then print with function printImageBase64

MarkCay commented 2 years ago

Thank you @thiendangit . I really appreciated the reply. I will try this one.