Here are some notes about common things that go off the rails.
If you have tethered an iOS device to your development machine and have deployed your React Native app (in DEBUG mode) to the device, Reactotron needs to know the host of the machine in order to connect.
Go to the file in your React Native app that configures Reactotron. This file is named "ReactotronConfig.js". Uncomment the 'host' line under .configure
and set it to the ip address of your host machine. Don't forget to add a comma after this line!
The configuration should look something like this:
if (__DEV__) {
Reactotron
.configure({
host: '<machine host ip>', // default is localhost (on android don't forget to `adb reverse tcp:9090 tcp:9090`)
name: 'Ignite App' // would you like to see your app's name?
})
Stop the React Native packager and re-deploy the app to your tethered iOS device. When the app starts up, Reactotron will connect to your machine's ip address.
Make sure you are running your app using the command:
exp start --localhost
Otherwise the app is not using the port 9000.
If you're using an emulator like Genymotion or the one in Android Studio, or even if your own device, you can still use localhost (the default) to connect provided you port forward back to your computer.
While plugged in type:
adb reverse tcp:9090 tcp:9090
This only works on Android 5.x+.
As of 1.1.4, the proper IP address is auto-discovered. Simply leave the configure
as is.