On an iPhone, the printing is very slow, and the content is shifted to one side, causing part of the receipt to be cut off

Has anyone tried using react-native-thermal-receipt-printer-image-qr? I have a question. When printing from an Android phone, everything works fine, but on an iPhone, the printing is very slow, and the content is shifted to one side, causing part of the receipt to be cut off.

I would really appreciate any help. Thank you very much!" enter image description here

"I have tried configuring it separately for each operating system, but it didn't work."

    const handlePrintBillWithImage = async () => {
        console.log('Printing image:', invoiceImage?.uri);
        const base64Image = await RNFS.readFile(invoiceImage.uri, 'base64');
        const Printer = printerList[selectedValue];
        
        Printer.printImageBase64(
            base64Image,
            {
                imageWidth: 384,
                imageHeight: invoiceImage.height,
                paddingX:0,
                printerWidthType:"58mm",
            },
        );
    };

Upvotes: 0

Views: 20

Answers (0)

Related Questions