tr3v3r / react-native-esc-pos-printer

An unofficial React Native library for printing on an EPSON TM printer with the Epson ePOS SDK for iOS and Epson ePOS SDK for Android
MIT License
137 stars 64 forks source link

Feature - New Method: `getPrinterStatus` #134

Closed tomergroisman closed 5 months ago

tomergroisman commented 5 months ago

Currently, consumers must use the monitoring method in order to retrieve the printer status, but consumers might want to use a one time status getter, which is not currently supported.

Some use cases for example:

This contribution contains changes in the native code and a RN method addition, mainly leaning on the logic provided in the preformMonitoring methods (and also used by this method as well in the new implementation)

tr3v3r commented 5 months ago

@tomergroisman merged! Will prepare new version today later on

tr3v3r commented 5 months ago

@tomergroisman Version 3.1.0 available in npm