infinitered / infinitered/reactotron

Reactotron not connecting to iOS simulator

Open
#1,382 3 comments 0 reactions 0 assignees View on GitHub
need info :hourglass_flowing_sand:
Dominant language
TypeScript
Stars
15.6k
Forks
972
PR merge metrics
No merged PRs in 30d

Description

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
}
```

Contributor guide

Open the contributing guide

Research direction

Start with the Reactotron configuration in src/configs/reactotron and its import from index.js, then reproduce the connection attempt using the listed React Native, Reactotron, macOS, and iOS simulator versions. Check the configured host and port while comparing localhost with 192.168.31.202; done means the app connects to Reactotron without errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, react-native
Domain
devtools, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.