Printing using expo print Api #19481
-
I am building a POS app and I want to be able to print a receipt, I have gone through the expo print API documentation and even implemented its functionality in my app, as of now I can export a html file into PDF which is good but I want to be able to select a printer and print that pdf .However I don't not have a printer with me yet. Here is my query, so when I get a Bluetooth printer and connect it to my phone will the API be able to see the printer and actually print the specific file? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
did you find an answer? how to do that? |
Beta Was this translation helpful? Give feedback.
-
hie, um getting this error Cannot read property 'printBluetooth' of null
|
Beta Was this translation helpful? Give feedback.
-
I have problem in style recipet ticket is take many spaces top |
Beta Was this translation helpful? Give feedback.
Hello @amilaupendra
yes i did, However expo print wont work.
I used this library https://www.npmjs.com/package/react-native-thermal-printer .
note. if you are using managed workflow you will have to prebuild your app then you can use the package
you can read here :
1 https://docs.expo.dev/workflow/customizing/
2. https://docs.expo.dev/workflow/prebuild/
hope this helps