Open sergeushenecz opened 2 years ago
I have print btn.
When I click for the first time everything is fine. Sometimes I click a second time and it's also good, but there is such a random error
Steps to reproduce the behavior:
const client = TcpSocket.createConnection({ host: printer.ip, port: printer.port, }, () => { client.write(data); client.destroy(); }); client.on('error', (error) => { }); client.on('close', () => { }); });
Attempt to invoke virtual method 'java.io.OutputStream' java.net.Socket.getOutputStream on a null object reference.
Code to need works.
Screenshots
You can use my fork at https://github.com/gajjartejas/react-native-tcp
Description
I have print btn.
When I click for the first time everything is fine. Sometimes I click a second time and it's also good, but there is such a random error
Steps to reproduce
Steps to reproduce the behavior:
Current behavior
Attempt to invoke virtual method 'java.io.OutputStream' java.net.Socket.getOutputStream on a null object reference.
Expected behavior
Code to need works.
Screenshots
Relevant information