- I fork this for my quickly project print with NET(android & ios) and USB(android) with Image & QR.
- Bluetooth just using old structure (ios & android) not implement printing with Image & QR.
- Fork of
react-native-thermal-receipt-printer
and add implement :- Image & QR : ✔️
- Fix cut : ✔️
- Print With Column : ✔️
npm i react-native-thermal-receipt-printer-image-qr
or
yarn add react-native-thermal-receipt-printer-image-qr
- when install in
react-native
version >= 0.60, xcode show this error
duplicate symbols for architecture x86_64
that because the .a library uses CocoaAsyncSocket library and Flipper uses it too
Podfile
...
use_native_modules!
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable these next few lines.
# add_flipper_pods!
# post_install do |installer|
# flipper_post_install(installer)
# end
...
and comment out code related to Flipper in ios/AppDelegate.m
Printer | Android | IOS |
---|---|---|
USBPrinter | ✔️ | |
BLEPrinter | ✔️ | ✔️ |
NetPrinter | ✔️ | ✔️ |
To get started with the project, run yarn bootstrap
in the root directory to install the required dependencies for each package:
yarn bootstrap
While developing, you can run the example app to test your changes.
To start the packager:
yarn example start
To run the example app on Android:
yarn example dev-android
To run the example app on iOS:
yarn example ios