Skip to content

Commit

Permalink
WIP: update printing architecture (#139)
Browse files Browse the repository at this point in the history
* feat(changed): updated printing architecture

* feat(add): add print helpers and pairing printer method

* tryToConnectUtil

* fix lint

* chore: release 4.0.0-beta.0

* feat(changed): add addTextLang method, get rid of legacy code

* add clearCommandBuffer method

* Added New Method 'clearCommandBuffer' To forcefully clear buffer

* fix lint

* chore: release 4.0.0-beta.1

* move pairBluetoothDevice to Discovery module, move printer helpers to static methods

* refactor: remover redundant code, regroup folders, move native constants to helpers

* chore: release 4.0.0-beta.2

* Add possibility to inject your own queue engine, exporto all enums and constants

* chore: release 4.0.0-beta.3

* fix(fixed): fix Android blocking thread, increase timeout for discovery and connect to fix Android timeout error

* chore: release 4.0.0-beta.4

* chore: release 4.0.0-beta.5

* feat(added): docs for Printer constructor and connect method, allow to disconnect in case connection has lost

* chore: release 4.0.0-beta.6

* docs(added): add docs for addText, disconnect, addFeedLine methods

* docs(added): add docs for sendData method

* doc(added): cover addCut, getPrinterSetting methods

* docs(added): cover getStatus method

* docs(added): cover addImage method

* docs(added): cover addBarcode

* docs(added): cover addSymbol

* docs(added) cover addCommand, addPulse, addTextAlign

* docs(added): cover addTextSize, addTextStyle, addTextLang, addTextSmooth

* docs(added): cover addTextLine static method

* docs(added): finish docs

---------

Co-authored-by: Waleed Tariq <[email protected]>
  • Loading branch information
tr3v3r and Waleed065 authored Jul 25, 2024
1 parent 53dc853 commit 9f51666
Show file tree
Hide file tree
Showing 139 changed files with 6,385 additions and 9,285 deletions.
27 changes: 11 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,31 @@ _An unofficial React Native library for printing on an EPSON TM printer with the
| [![npm version](https://badge.fury.io/js/react-native-esc-pos-printer.svg)](https://badge.fury.io/js/react-native-esc-pos-printer) |
|---|





1. [Installation](./docs/INSTALLATION.md)
2. [Quick Print Example](./docs/QUICK_START.md)
3. [API](./docs/API.md)
4. [SDK information (v2.27.0)](./docs/SDK.md)
5. [List of supported printers for Android](./docs/and2270.pdf)
5. [List of supported printers for iOS](./docs/and2270.pdf)
6. [Expo](./docs/EXPO.md)
4. [Expo](./docs/EXPO.md)
5. [SDK information (v2.27.0)](./docs/SDK.md)
6. [List of supported printers for Android](./docs/and2270.pdf)
7. [List of supported printers for iOS](./docs/and2270.pdf)
8. [Examples](./docs/QUICK_START.md)

## Sponsoring
I have only one device (with LAN interface), that means that I can't check any issues connected with multiple printing devices, Bluetooth, USB, etc. So it will be reasonable to buy some additional devices for testing purposes. Please contact me via email if you want to help me with that.

Or you can just send any amount to my [BTC acc](bc1qkarm3y9f5pa5frey2na6e830cqyuzlxtwyme4j).
I'm working on the lib at my free time. If you like the lib and want to support me, you can [buy me a cofee](https://buymeacoffee.com/tr3v3r
). Thanks!


## Troubleshooting
## Known issues

1. For now it's not possible to print and discover on Android simulator. But you can always use real device.

2. If you have an issue with using Flipper on iOS real device, please [try this](./docs/flipperWorkaround.md) workaround.

## Roadmap
- [ ] Add expo example
- [x] Add expo example
- [ ] Add print from react View example
- [x] Reimplement discovering to have implementation close to native SDK
- [ ] Reimplement printing to have implementation close to native SDK
- [ ] Add queue mechanism for quick print
- [x] Reimplement printing to have implementation close to native SDK
- [x] Add queue mechanism for quick print

## License

Expand Down
Loading

0 comments on commit 9f51666

Please sign in to comment.