Rapsssito / react-native-tcp-socket

React Native TCP socket API for Android, iOS & macOS with SSL/TLS support.
MIT License
303 stars 81 forks source link

TypeError: Cannot read property 'connect' of null, js engine: hermes #182

Closed XiaoSGentle closed 7 months ago

XiaoSGentle commented 7 months ago

Description

TypeError: Cannot read property 'connect' of null, js engine: hermes

Or code:

  const Connect = () => {
    const socket = TcpSocket.default.createConnection(
      { host: "127.0.0.1", port: 6215 },
      () => {}
    );
  };

I used a Button event to call bb6bd29a0515cbde08fda4254dddeee

Relevant information

OS Android
react-native 0.72.6
react-native-tcp-socket 6.0.6
XiaoSGentle commented 7 months ago

I hope to get an answer. Thank you very much.

XiaoSGentle commented 7 months ago

I'm using React-Native without error, I was using expo, it's great!

pkaminski2108 commented 6 months ago

How did you fix it? @XiaoSGentle

XiaoSGentle commented 6 months ago

How did you fix it? @XiaoSGentle

Expo doesn't support the use of TCP, downgrading to a normal ReactNative project is fine

realicedicerice commented 5 months ago

Same here, I'm not using expo