Reactotron: Reactotron how to start it?

Created on 2 Jan 2018  路  8Comments  路  Source: infinitered/reactotron

I already made all the setting in my OS.
I am currently working on a Mac. Basically I am running this following commands:

react-native start
react-native run-android

And in the main screen of Reactotron there is not sign of any activity.

Any miss configuration?

this is my reactotron config:

import Config from '../Config/DebugConfig'
import Immutable from 'seamless-immutable'
import Reactotron from 'reactotron-react-native'
import { reactotronRedux as reduxPlugin } from 'reactotron-redux'
import sagaPlugin from 'reactotron-redux-saga'
// import apisaucePlugin from 'reactotron-apisauce'

if (Config.useReactotron) {
  // https://github.com/infinitered/reactotron for more options!
  Reactotron
    .configure({ name: 'myAppName',
      socketIoProperties: {
        reconnection: true,
        reconnectionDelay: 2000,
        reconnectionDelayMax: 5000,
        reconnectionAttempts: 5
      }
    })
    .useReactNative()
    .use(reduxPlugin({ onRestore: Immutable }))
    .use(sagaPlugin())
    .connect()

  // Let's clear Reactotron on every time we load the app
  Reactotron.clear()

  // Totally hacky, but this allows you to not both importing reactotron-react-native
  // on every file.  This is just DEV mode, so no big deal.
  console.tron = Reactotron
}
question

Most helpful comment

Don't forget to run adb reverse tcp:9090 tcp:9090 to open up a reverse tunnel from your device back to your host machine.

All 8 comments

That looks correct to me. Are you sure this code is executing? Is Config.useReactotron truthy?

Yes I am executing the code. Yes it is imported the Config.useReactotron.

But I don't have any connection yet.

I am using an Android real devices. I was checking the IOS emulator and everything is working sweet. But I don't see any information about how to start in a real Android device.

Don't forget to run adb reverse tcp:9090 tcp:9090 to open up a reverse tunnel from your device back to your host machine.

ohh Let me check that. So to be clear first I should start:
adb reverse tcp:9090 tcp:9090
Then I just run:
react-native run-android
in that way?

Hopefully you're all sorted. Lemme know if you're not.

Great help!

Please add this to Quick start documentation as well.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

itaied246 picture itaied246  路  4Comments

sylar picture sylar  路  4Comments

Kida007 picture Kida007  路  4Comments

andrewvy picture andrewvy  路  4Comments

Ashoat picture Ashoat  路  4Comments