react-native-thermal-printer icon indicating copy to clipboard operation
react-native-thermal-printer copied to clipboard

Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference

Open itzmail opened this issue 3 years ago • 4 comments

When i was print image via Bluetooth, i got this error.

how to solve this error?

itzmail avatar Apr 06 '22 04:04 itzmail

make sure you have an active internet connection

AllInOneYT avatar Apr 07 '22 06:04 AllInOneYT

The image in example does not exists, try another

alezanchet avatar Apr 13 '22 21:04 alezanchet

In my case the receipt content had invalid values.

I did not pass a variable while building the receipt content:

transaction variable was missing.

'[L]<b>REF: </b> ' + transaction?.transactionRef.replace(/\s/g, "") +'\n' +

victorighalo avatar Dec 09 '23 10:12 victorighalo