Skip to content

Instantly share code, notes, and snippets.

@csorlandi csorlandi/reactotron
Created Dec 28, 2018

What would you like to do?
import {NativeModules} from 'react-native';
import Reactotron from 'reactotron-react-native';
if (__DEV__) {
const scriptURL = NativeModules.SourceCode.scriptURL;
scriptHostname = scriptURL.split('://')[1].split(':')[0];
const tron = Reactotron
.configure({host: scriptHostname})
console.tron = tron;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.