Change port of react devtools

Viewed 452

I'm trying to setup my environment to develop with react-native and react-devtools. Per default the react-devtool uses port 8097 to connect with the app on the emulator. Unfortunatley, this port is blocked at my workplace. Where/How can i change this port?

I found out that there's an option to configure the devtools with:

const { connectToDevTools } = require("react-devtools-core");
connectToDevTools( { port: "customport" } );

I just don't know where to place this config.

I managed to change the app so that it tries to connect to a different port, but i can't seem to change wart port the devtool client (?) uses (see image)

Any help is appreciated

0 Answers
Related