- Add below packages to package.json as
devDependencies
and runnpm i
"reactotron-react-native": "^2.1.0",
"reactotron-redux": "^2.1.0",
- Get the desktop app from here
-
Add the reactotronConfig.js file to the root(if you have config folder in root, then to it.)
-
Update the redux store as below
Import reactotronconfig file
import Reactotron from '<path>/<to>/ReactotronConfig';
Update the redux store using below code
const middleware = applyMiddleware(ReduxThunk);
const store = Reactotron.createStore(reducers, middleware);
-
Keep the reactotron app open, and build the app.
-
once the app is build run
adb reverse tcp:9090 tcp:9090
command in the cli. -
reload the app and the App should be connected to reactotron now.
Read more about reactotron from here.