-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does this library support react native? #36
Comments
BTW. Tried latest 3.0.1 version. Built successful, but not working. Code that calling class construct display that.
|
Apparently Hermes does not support I'll see if I can include a polyfill in the next update. |
@NielsLeenheer May I ask you to add some variants to print images on web and mobile side? Cause I can't find a way to get image data to pass to your image method of escpos builder 🫶 |
In the examples directory there are a lot of libraries that can be used with ReceiptPrinterEncoder, and some are plain JavaScript, so I am sure some of them support React Native as well. But I am not familiar with how React Native works, so I can't give you examples of how to use it. |
Got something similar: |
That main be an issue with the bundler your project is using. ImageData is import from the Not sure if that is helpful or not. Maybe the Ideally, for better React Native support I would need a sample project somewhere on Github which I could clone and play around with, without having to learn React Native from the ground up. |
You can use Expo Snack, it's an easy way to test lib on real devices. Here is example |
@serhii-yalla @karaushu Were you guys able to figure out if ReceiptPrinterEncoder can work correctly with react-native or not ? I am also getting the same error around |
If so, what version is it support? For my case, I am on 0.75.3 version of react native.
The text was updated successfully, but these errors were encountered: