Closed Klairm closed 2 years ago
So if anyone comes here, first of all I tried to "import" using
const net = require('react-native-tcp-socket');
And that gave another error
`TypeError: null is not an object (evaluating 'Sockets.connect')`
So after someone suggested to me on Reddit, I had to eject the code with expo eject
then rebuild the app using expo run:android
and that worked!
So if anyone's struggling with this might wanna try that.
Description
When creating a connection I'm getting the error
TypeError: undefined is not an object (evaluating '_reactNativeTcpSocket.TcpSocket.createConnection')
and I'm not sure how to debug this properly to see where's the error originatedOr code:
Relevant information
I'm using Expo idk if that's relevant