reactotron
reactotron copied to clipboard
App name not displaying
I have multiple iOS running and it's hard to differentiate between the two because the name is not displaying.
if (process.env.NODE_ENV === "development") {
const scriptURL = NativeModules.SourceCode.scriptURL;
hostname = scriptURL.split("://")[1].split(":")[0];
}
const reactotron = Reactotron.configure({
name: "React Native App",
host: hostname,
})
.useReactNative()
.use(openInEditor())
.use(networking())
.use(trackGlobalErrors())
.use(reactotronRedux())
.use(sagaPlugin())
.connect();
export default reactotron;