React-Native: Why do I get network errors when testing on iOS device React-Native: Why do I get network errors when testing on iOS device reactjs reactjs

React-Native: Why do I get network errors when testing on iOS device


8 Steps to Get Rid Of Error "nw_connection_get_connected_socket Connection has no connected handler TCP Conn Failed : error 0:61 [61]"

1-Xcode menu -> Product -> Edit Scheme...

2-Environment Variables -> Add -> Name: "OS_ACTIVITY_MODE", Value:"disable"

3-Xcode menu -> product -> clean

4-Xcode menu product -> 'clean build folder' (hold down option key)

5-Install react-devtools: npm install -g react-devtools

6-Run react-devtools: react-devtools

7-In your project, edit node_modules/react-native/Libraries/Core/Devtools/setupDevtools.js by replacing 'localhost' with your development machine's IP address.

8-Build Project - (it will take long time for first time)

This steps for React Native nw_connection Errors, if the problem still occurs; follow the step on the image link (it will hide logs not solve)

image link -->this will hide logs and lets build (if build failing) not solves problem exactly