januslo / react-native-bluetooth-escpos-printer

React-Native plugin for the bluetooth ESC/POS & TSC printers.
MIT License
359 stars 416 forks source link

can't scale the size of image #104

Closed byteab closed 4 years ago

byteab commented 4 years ago

I want to print an image with full width. but as I increase the width property, nothing change in print

byteab commented 4 years ago

I just fix it by commenting this line of codes in

 @ReactMethod
    public void printPic(String base64encodeStr, @Nullable  ReadableMap options) {
        ............

        //cannot larger then devicesWith;
        // if(width > deviceWidth || width == 0){
            // width = deviceWidth;
        // }
}

in node_modules/react-native-bluetooth-escpos-printer/android/src/main/java/cn/jystudio/bluetooth/escpos/RNBluetoothEscposPrinterModule.java

OhFarhan commented 10 months ago

@TheEhsanSarshar you just saved my day bro Jazakallah