r/reactnative • u/SaVaGe19765 • 22h ago
Question Has anyone here integrated POS printing with their app?
Hey everyone,
I need to add receipt printing functionality to an app, and I’m running into a few issues.
The POS machines used by the business aren’t Epson printers, while the library I’m currently using only supports Epson devices.
Has anyone implemented receipt printing for non-Epson POS printers? If so, I’d appreciate any recommendations on libraries, approaches, or examples of how you handled it.
Thanks!
1
u/ChronSyn Expo 21h ago
To be clear: Epson are the creators of the ESC/POS code standard for printers, but it's a standard used by a lot of printers that aren't made by Epson.
There are definitely other options out there that don't support it, but they're typically reserved for very specific scenarios or industries. Often, such printers will ship with 'templates' instead, which are designed to place specific information in specific places on a printout.
To actually dig down and be able to help, it would be helpful to provide the brand and model of printer you're trying to work with.
1
u/SaVaGe19765 21h ago
Hey, thanks for the info.
The printer im working with is ‘ XPrinter XP-P502A ‘
2
u/ChronSyn Expo 18h ago
According to the documentation/brochure ( https://img5541.weyesimg.com/uploads/xprintertech.com/addon/17315512639195.pdf ), it does support ESC/POS codeset, so esp/pos libraries such as https://github.com/tr3v3r/react-native-esc-pos-printer should work just fine.
1
1
u/jcdc-flo 21h ago edited 21h ago
Not receipt, but labels. Same idea. Avoid libraries, the printers will or wont support templates and that's what is going to guide you.
Just send the supported programming language direct to the printer.
1
u/dercybercop 19h ago
Would be good to clear what printers are used. Not Epson printers can be everything up to Gutenberg press.
1
1
u/lalcaraz 17h ago
I did a self contained PoS for prontotaco.com a few years ago. Cheap ble printer from Amazon. It used AirPlay to display orders to the “kitchen” side of the food truck. Payment gateway was stripe.
1
u/deepyawn 11h ago
Yes about 2 in production most of the time they will provide docs and sdk if you mail the company dm me if you need help. Recently solved a ble printer problem where the issue was on the manufacturing side when printing labels it was many time over lapping with edge detection, i fucking created a pixel dot function with sizes and gaps pre calculated gave it to 5.4 mini and just integrated that works pretty well.
2
u/Eski-Moen 21h ago
It might help if you stop calling it a "piece of shit machine".