infinitered/reactotron

Reactotron not connecting to iOS simulator

iujisato opened this issue · 3 comments

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

  • MacOS Sonoma 14.1 (M1 chipset)
  • Node 16.20.2
  • iOS simulator 17.0.1

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
}

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/

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

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