infinitered / reactotron

A desktop app for inspecting your React JS and React Native projects. macOS, Linux, and Windows.
https://docs.infinite.red/reactotron/
MIT License
14.71k stars 936 forks source link

Reactotron not connecting to iOS simulator #1382

Open iujisato opened 7 months ago

iujisato commented 7 months ago

Hello guys, I've been using reactotron for a long time and it's the first time that I really can't connect to a RN app... Does anyone have any tips?

PS. I can't really update the RN version right now, and I also checked that the port 9090 is available and running

Environment

Dependencies

# Not Expo
"react-native": "0.63.5",
"reactotron-react-native": "^5.0.4",

Reactotron App: "3.1.1"

Configurations

import Reactotron, {networking} from 'reactotron-react-native';
import AsyncStorage from '@react-native-async-storage/async-storage';

Reactotron.setAsyncStorageHandler(AsyncStorage)
  .configure({
    host: '192.168.31.202', # Also tested using 'localhost' and not setting it at all
  })
  .useReactNative()
  .use(networking()) # Tested without calling networking too
  .connect();
# index.js

if (__DEV__) {
  import('./src/configs/reactotron')
    .then(() => console.log('Reactotron configured'))
    .catch(e => console.log('Reactotron error', e)); # No errors at all
}
joshuayoes commented 7 months ago

Try removing host. We have done some work to improve the defaults of Reactotron to connect to your app by default.

Here is a snippet to try

import Reactotron, {networking} from 'reactotron-react-native';
import AsyncStorage from '@react-native-async-storage/async-storage';

Reactotron
  .configure()
  .useReactNative()
  .setAsyncStorageHandler(AsyncStorage)
  .connect();

If that isn't working, we have some troubleshooting steps in the docs: https://docs.infinite.red/reactotron/troubleshooting/

iujisato commented 6 months ago

Already tried removing host, it doesnt work, also checked the troubleshoot

benazir46 commented 4 months ago

Try installing "reactotron-react-js": "^3.3.13". That solved it for me.