HeligPfleigh / react-native-thermal-receipt-printer

A RN library for thermal printer
163 stars 103 forks source link

NetPrinter.connect(): java.lang.String cannot be cast to java.lang.Double #47

Open lucle1999 opened 3 years ago

lucle1999 commented 3 years ago

I get this error when I call the NetPrinter.connect() function. Can you give me 1 solution? image

HeligPfleigh commented 3 years ago

Thanks you @lucle1999, this is a bug while bridging the native code to js, it should be fixed in commit https://github.com/HeligPfleigh/react-native-thermal-receipt-printer/commit/8c1b104c0051862eb68f651b015fea6cb6de7bfd. Could you try the latest version and share the result?

lucle1999 commented 3 years ago

Thanks @HeligPfleigh for your support. I have installed the latest version "react-native-thermal-receipt-printer": "^1.1.5", but it still doesn't work with the same error.