infinitered / infinitered/reactotron

Device does not connect

Open
#1,179 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.6k
Forks
972
PR merge metrics
No merged PRs in 30d

Description

I am using Reactotron (`reactotron-react-native` v4.0.3) with RN 0.61.5 on Android, developing under Ubuntu.

I am using the following snippet to configure Reactotron:

```js
if (__DEV__) {
import('./src/config/ReactotronConfig').then(() => {
console.log('Reactotron Configured');
registerAppComponent(appName, App);
});
}
```

The config is as follows:

```js
import AsyncStorage from '@react-native-community/async-storage';
import Reactotron from 'reactotron-react-native';

Reactotron
.setAsyncStorageHandler(AsyncStorage) // AsyncStorage would either come from `react-native` or `@react-native-community/async-storage` depending on where you get it from
.configure({
name: "React Native Demo"
})
.useReactNative({
asyncStorage: false, // there are more options to the async storage.
networking: { // optionally, you can turn it off with false.
ignoreUrls: /symbolicate/
},
editor: false, // there are more options to editor
errors: { veto: (stackFrame) => false }, // or turn it off with false
overlay: false, // just turning off overlay
})
.connect();

```

The console log is printed in the debugger, to which the virtual device is connecting.

I've added the reverse port mapping:

```
➜ adb reverse --list
host-8 tcp:8081 tcp:8081
host-8 tcp:9090 tcp:9090
```

However, Reactotron keeps showing "Waiting for connection", even when reinstalling/reloading the app on the virtual device.

The device can obviously connect to the debugger at port 8081, but not Reactotron. What can I do?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/config/ReactotronConfig and the Reactotron .connect() setup, then verify the Android emulator's adb reverse mapping for port 9090. Trace the connection from the app to the desktop Reactotron instance and check relevant logs. Done means the emulator connects reliably and Reactotron no longer shows “Waiting for connection”.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
developer-experience, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.