januslo / react-native-sunmi-inner-printer

http://docs.sunmi.com/htmls/index.html?lang=zh##V1文档资源 根据商米V1文档开发的热敏打印
MIT License
74 stars 120 forks source link

Question for printQrCode #59

Closed Alnsentry closed 3 years ago

Alnsentry commented 3 years ago

Hi i wanna ask something about printQrCode(), I want to make an application that can be printing qr code on sunmi v2 pro and i have a problem to this because i am a beginner, i search in google how i can do this, but so minimum documentation for this library. can you give me some detailed documentation or help for fix my code? Thank you.

Print = async () => { try { await SunmiInnerPrinter.setFontSize(40); await SunmiInnerPrinter.printOriginalText("Sample Test\n"); await SunmiInnerPrinter.printQrCode("123456",4,3); }catch(e){ console.log(e) alert("print error."+e.message); } }