Skip to content

Instantly share code, notes, and snippets.

@GuilhermeLis
Last active November 20, 2020 15:37
Show Gist options
  • Select an option

  • Save GuilhermeLis/d79c10bb7cd03a9472c66c557eb03271 to your computer and use it in GitHub Desktop.

Select an option

Save GuilhermeLis/d79c10bb7cd03a9472c66c557eb03271 to your computer and use it in GitHub Desktop.

Revisions

  1. Guilherme Lisboa revised this gist Nov 20, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ReactotronConfig.ts
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ declare global {
    }

    if ('__DEV__') {
    const tron = Reactotron.configure({ host: 'coloque-seu-endereço', port: 9090 })
    const tron = Reactotron.configure({ host: 'put your ip here', port: 9090 })
    .useReactNative({ errors: true, editor: true })
    .use(reactotronRedux())
    .use(reactotronSaga())
  2. Guilherme Lisboa created this gist Nov 20, 2020.
    21 changes: 21 additions & 0 deletions ReactotronConfig.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    import Reactotron from 'reactotron-react-native';
    import { reactotronRedux } from 'reactotron-redux';
    import reactotronSaga from 'reactotron-redux-saga';

    declare global {
    interface Console {
    tron: any;
    }
    }

    if ('__DEV__') {
    const tron = Reactotron.configure({ host: 'coloque-seu-endereço', port: 9090 })
    .useReactNative({ errors: true, editor: true })
    .use(reactotronRedux())
    .use(reactotronSaga())
    .connect();

    tron.clear!();

    console.tron = tron;
    }