GithubHelp home page GithubHelp logo

Comments (27)

chukiatt avatar chukiatt commented on April 28, 2024 2

very welcome

thank you very much

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

chukiatt avatar chukiatt commented on April 28, 2024 2

@thiendangit It's work. I am very glad

i not sure it's support both Android and iOS ?

Thank you very much

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

chukiatt avatar chukiatt commented on April 28, 2024 2

@thiendangit

Thank you for your help. Your library will be an important part of the build POS project. of Thailand

Thank you very much

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

chukiatt avatar chukiatt commented on April 28, 2024 1

@thiendangit i make sure by created a new react native app for test and then install only your library

npx react-native init testProject
npm install react-native-thermal-receipt-printer-image-qr
react-native run-android --deviceId=SWTOAIKNM78TCYSW

app build success. but printImage is still error

TypeError: RNBLEPrinter.printImageData is not a function. (In 'RNBLEPrinter.printImageData(imgUrl, function (error) {
return console.warn(error);
})', 'RNBLEPrinter.printImageData' is undefined)

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

chukiatt avatar chukiatt commented on April 28, 2024 1

@thiendangit Yes, i want to print in both platform include base64 uri

my goal is draw everything to image (text and picture) and export to base64 toDataURL() to print. this idea is pretty good for almost printer can print without a problem (not only epson and star)

thanks for your help

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

thiendangit avatar thiendangit commented on April 28, 2024 1

@chukiatt ok i'll try it tonight 😁

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

thecodecafe avatar thecodecafe commented on April 28, 2024 1

Hi @thiendangit, this is a great library, I just tried BLEPrinter.printQrCode(base64EncodedImage) and got an error saying printQrCode is not a function in RNBLEPrinter.printQrCode(qrCodeBas64, function(error) {return console.warn(error);}) RNBLEPrinter.printQrCode is undefined.
I've given a star! 😊

[Edit]
This is happening on Android, this is the only platform I can test for right now.
The problem was that in RNBLEPrinter the printQrCode method does not have @ReactMethod so it's not exported in NativeModules.

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

thiendangit avatar thiendangit commented on April 28, 2024

@chukiatt What platform are you having problems?

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

chukiatt avatar chukiatt commented on April 28, 2024

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

thiendangit avatar thiendangit commented on April 28, 2024

@chukiatt I don't have a bluetooth printer at the moment so I can't develop and test this feature yet! but I'll try to find a way to guide you through its development and testing.!

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

thiendangit avatar thiendangit commented on April 28, 2024

@chukiatt if you only develop print feature for android and bluetooth you can try using this library: https://www.npmjs.com/package/react-native-thermal-printer

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

chukiatt avatar chukiatt commented on April 28, 2024

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

thiendangit avatar thiendangit commented on April 28, 2024

@chukiatt I'll try to develop this feature! Can you help me test it because i don't have bluetooth printer?

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

chukiatt avatar chukiatt commented on April 28, 2024

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

thiendangit avatar thiendangit commented on April 28, 2024

@chukiatt please try again!

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

chukiatt avatar chukiatt commented on April 28, 2024

after update to "react-native-thermal-receipt-printer-image-qr": "^0.1.3",
i got this error

TypeError: RNBLEPrinter.printImageData is not a function

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

thiendangit avatar thiendangit commented on April 28, 2024

@chukiatt i added it in v0.1.3 for android version already! try to remove yarn.lock and react-native-thermal-receipt-printer-image-qr in your node_modules and try again!

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

chukiatt avatar chukiatt commented on April 28, 2024

@thiendangit i will try again and response to inform you

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

thiendangit avatar thiendangit commented on April 28, 2024

@chukiatt Ahhh sr. i see this error! I’ll fix it in the morning.

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

chukiatt avatar chukiatt commented on April 28, 2024

Thank you very much

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

thiendangit avatar thiendangit commented on April 28, 2024

@chukiatt i fixed in v0.1.4

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

thiendangit avatar thiendangit commented on April 28, 2024

@chukiatt Does Android work? if you want to print pictures with bluetooth in ios or with base64 uri, I can help you!

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

thiendangit avatar thiendangit commented on April 28, 2024

@chukiatt please try :

  • Add this line to package.json :

react-native-thermal-receipt-printer-image-qr : "https://github.com/thiendangit/react-native-thermal-receipt-printer-image-qr.git"

  • Using function printQrCode to print image with base64 in android and ios!
  • Using function printImage to print image with url in android and ios!

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

thiendangit avatar thiendangit commented on April 28, 2024

@chukiatt is print BLUETOOTH working? if it working, i'll release new version!

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

chukiatt avatar chukiatt commented on April 28, 2024

Yes, now i tested only bluetooth, It's work well.

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

thiendangit avatar thiendangit commented on April 28, 2024

@chukiatt wow! many tks 🎉.
Both android and ios are ok? ? give me star if you like my repos 😚 😚

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

thiendangit avatar thiendangit commented on April 28, 2024

@thecodecafe many tks! I was careless

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

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.