diff --git a/package.json b/package.json index 0fc07e8..cc88f82 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tillpos/rn-receipt-printer-utils", - "version": "0.2.18", + "version": "0.2.19", "description": "Fork of react-native-printer. A React Native Library to support USB/BLE/Net printer", "main": "lib/commonjs/index", "module": "lib/module/index", diff --git a/src/epson.ts b/src/epson.ts index 18a759c..2b991f3 100644 --- a/src/epson.ts +++ b/src/epson.ts @@ -28,7 +28,10 @@ export const EpsonUtil = { }); const printing = new EscPosPrinter.printing(); - const status = await printing.initialize().data(data).send(); + const status = await printing + .initialize() + .data(data) + .send({ timeout: 200000 }); successCallback('Successfully printed with status:' + status); } catch (e) { errorCallback(e);