Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reactotron not connecting to iOS simulator #1382

Open
iujisato opened this issue Dec 19, 2023 · 3 comments
Open

Reactotron not connecting to iOS simulator #1382

iujisato opened this issue Dec 19, 2023 · 3 comments
Labels
need info ⏳ We need more information about this.

Comments

@iujisato
Copy link

iujisato commented Dec 19, 2023

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
}
@joshuayoes
Copy link
Contributor

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/

@joshuayoes joshuayoes added the need info ⏳ We need more information about this. label Dec 20, 2023
@iujisato
Copy link
Author

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

@benazir46
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need info ⏳ We need more information about this.
Projects
None yet
Development

No branches or pull requests

3 participants