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
169 stars 70 forks source link

Support for React Native Windows #136

Open rafaelmonroy opened 8 months ago

rafaelmonroy commented 8 months ago

Is there a roadmap for support on a React Native Windows app?

Epson does provide a Windows SDK: https://c4b.epson-biz.com/modules/pos/index.php?page=single_soft&cid=6045&scat=41&pcat=52

If there are no plans this, would a PR that offers this functionality be welcomed?

tr3v3r commented 8 months ago

HI @rafaelmonroy
For now, I have a plan for a big restructuring of the printing approach and documentation for the Native part ( in progress ). Yes, it'd be great to have Windows support as well. So I'd appreciate any here!

Waleed065 commented 8 months ago

Good Stuff.

@tr3v3r When can we expect the restructuring change to be released?

tr3v3r commented 8 months ago

@Waleed065 For now, the approach itself is finished but I need to migrate all existing methods. I'll raise a PR tomorrow at the latest with the intermediate results.

So you can follow the proposed structure and do WIndows support in parallel

tr3v3r commented 8 months ago

BTW you can start from "Printer Discovery", it's fine

https://github.com/tr3v3r/react-native-esc-pos-printer/blob/main/docs/discovery/discovery.md

powershek commented 8 months ago

Good to support react-native-windows version . Thank you very much , hope to hear the update soon

rafaelmonroy commented 6 months ago

@tr3v3r we are getting ready to begin the windows support soon, do you know if this PR will be merging soon? If not, no worries we can branch off from it to begin our work. Thanks

tr3v3r commented 6 months ago

@rafaelmonroy hi! Happy to hear that!

You can start from the branch since the work is still in progress. But no major changes are planned, only bug fixes and documentation.

tr3v3r commented 3 months ago

@rafaelmonroy just FYI version 4.0.0 is finally out!

rafaelmonroy commented 3 months ago

@tr3v3r thanks for the update. We were able to successfully integrate the official epson windows sdk into a forked version of your repo using the new structure used in version 4.0.0, but due to time constraints and budget, we were only able to implement the features our business required, and at the moment have no plans to continue working on this. Would you like to see the work that was done and perhaps you can finish integrating the rest of the features?

tr3v3r commented 3 months ago

@tr3v3r thanks for the update. We were able to successfully integrate the official epson windows sdk into a forked version of your repo using the new structure used in version 4.0.0, but due to time constraints and budget, we were only able to implement the features our business required, and at the moment have no plans to continue working on this. Would you like to see the work that was done and perhaps you can finish integrating the rest of the features?

Hello! Yes please you can raise pull request with your code I can at least estimate the effort

rafaelmonroy commented 3 months ago

@tr3v3r here is the PR https://github.com/tr3v3r/react-native-esc-pos-printer/pull/169