Comments (27)
very welcome
thank you very much
from react-native-thermal-receipt-printer-image-qr.
@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.
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.
@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.
@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.
@chukiatt ok i'll try it tonight 😁
from react-native-thermal-receipt-printer-image-qr.
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.
@chukiatt What platform are you having problems?
from react-native-thermal-receipt-printer-image-qr.
from react-native-thermal-receipt-printer-image-qr.
@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.
@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.
from react-native-thermal-receipt-printer-image-qr.
@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.
from react-native-thermal-receipt-printer-image-qr.
@chukiatt please try again!
from react-native-thermal-receipt-printer-image-qr.
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.
@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.
@thiendangit i will try again and response to inform you
from react-native-thermal-receipt-printer-image-qr.
@chukiatt Ahhh sr. i see this error! I’ll fix it in the morning.
from react-native-thermal-receipt-printer-image-qr.
Thank you very much
from react-native-thermal-receipt-printer-image-qr.
@chukiatt i fixed in v0.1.4
from react-native-thermal-receipt-printer-image-qr.
@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.
@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.
@chukiatt is print BLUETOOTH working? if it working, i'll release new version!
from react-native-thermal-receipt-printer-image-qr.
Yes, now i tested only bluetooth, It's work well.
from react-native-thermal-receipt-printer-image-qr.
@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.
@thecodecafe many tks! I was careless
from react-native-thermal-receipt-printer-image-qr.
Related Issues (20)
- printer HOT 1
- Android: Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference
- when usein NetPrinter found White lines printImageBase64 HOT 11
- There is a space between each letter.
- Add codepage to iOS
- speed printImage when using bluetooth thermal printer on iOS very slow HOT 2
- can't install on IOS using expo 48 HOT 5
- Hi Everyone, I can't use function printImageBase64. Warn: not defind this function. I use it in IOS Device. HOT 1
- About the "printColumnsText" method HOT 1
- is it possible to print two images on one row?
- NetPrinter not working well for iOS
- How to get a Printer Status like Connected, Page over, printed, Error(printer not working) or any related status for printer. HOT 1
- libPrinterSDK.a(GCDAsyncSoket.o)
- Trying to connect Network Printer Getting null object reference HOT 1
- Android 13 iMin USB printer permission error
- Could not determine the dependencies of task ':react-native-thermal-receipt-printer-image-qr:compileDebugAidl'. HOT 2
- Multiple device App connect to Printer not support HOT 3
- Cannot reconnect after physical disconnect HOT 1
- Permission error on Android v12+ HOT 2
- The print order results do not match with BLEPrinter HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-thermal-receipt-printer-image-qr.