HeligPfleigh / react-native-thermal-receipt-printer

A RN library for thermal printer
155 stars 102 forks source link

Cannot read property 'printTcp' of null #166

Closed serhii-yalla closed 5 months ago

serhii-yalla commented 5 months ago
ThermalPrinterModule.defaultConfig.ip = printerConfig.ipAddress;
  ThermalPrinterModule.defaultConfig.port = printerConfig.port || 9100;
  ThermalPrinterModule.defaultConfig.autoCut = false;
  ThermalPrinterModule.defaultConfig.timeout = 30000;

  try {
    await ThermalPrinterModule.printTcp({ payload: "hello world" });
  } catch (err) {
    //error handling
    console.log(err.message);
  }

ios 12.2