Skip to content

chukiatt/react-native-thermal-receipt-printer-image-qr

 
 

Repository files navigation

react-native-thermal-receipt-printer-image-qr

  • 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 : ✔️
bill screenshot

Installation

npm i react-native-thermal-receipt-printer-image-qr

or

yarn add react-native-thermal-receipt-printer-image-qr

Troubleshoot

  • 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

Support

Printer Android IOS
USBPrinter ✔️
BLEPrinter ✔️ ✔️
NetPrinter ✔️ ✔️

Development workflow

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

Packages

No packages published

Languages

  • Java 50.3%
  • TypeScript 31.0%
  • Objective-C 16.7%
  • Ruby 1.1%
  • Other 0.9%