How to use the reactotron-react-native.default function in reactotron-react-native

To help you get started, we’ve selected a few reactotron-react-native examples, based on popular ways it is used in public projects.

github easemob / webim-react-native / App / Config / ReactotronConfig.js View on Github external
import { StartupTypes } from '../Redux/StartupRedux'
import Immutable from 'seamless-immutable'
const Reactotron = require('reactotron-react-native').default
const errorPlugin = require('reactotron-react-native').trackGlobalErrors
const apisaucePlugin = require('reactotron-apisauce')
const { reactotronRedux } = require('reactotron-redux')

if (__DEV__) {
  Reactotron
    .configure({
      // host: '10.0.3.2' // default is localhost (on android don't forget to `adb reverse tcp:9090 tcp:9090`)
      name: 'Ignite App' // would you like to see your app's name?
    })

    // forward all errors to Reactotron
    .use(errorPlugin({
      // ignore all error frames from react-native (for example)
      veto: (frame) =>
        frame.fileName.indexOf('/node_modules/react-native/') >= 0
github infinitered / ignite / packages / ignite-ir-boilerplate / boilerplate / App / Config / ReactotronConfig.js View on Github external
import { StartupTypes } from '../Redux/StartupRedux'
import Config from '../Config/DebugConfig'
import Immutable from 'seamless-immutable'
const Reactotron = require('reactotron-react-native').default
const errorPlugin = require('reactotron-react-native').trackGlobalErrors
const apisaucePlugin = require('reactotron-apisauce')
const { reactotronRedux } = require('reactotron-redux')
const sagaPlugin = require('reactotron-redux-saga')

if (Config.useReactotron) {
  Reactotron
    .configure({
      // host: '10.0.3.2' // default is localhost (on android don't forget to `adb reverse tcp:9090 tcp:9090`)
      name: 'Ignite App' // would you like to see your app's name?
    })

    // forward all errors to Reactotron
    .use(errorPlugin({
      // ignore all error frames from react-native (for example)
      veto: (frame) =>
github infinitered / ignite / ignite-base / App / Config / ReactotronConfig.js View on Github external
import { StartupTypes } from '../Redux/StartupRedux'
import Config from '../Config/DebugSettings'
import Immutable from 'seamless-immutable'
const Reactotron = require('reactotron-react-native').default
const errorPlugin = require('reactotron-react-native').trackGlobalErrors
const apisaucePlugin = require('reactotron-apisauce')
const { reactotronRedux } = require('reactotron-redux')
const sagaPlugin = require('reactotron-redux-saga')

if (Config.useReactotron) {
  Reactotron
    .configure({
      // host: '10.0.3.2' // default is localhost (on android don't forget to `adb reverse tcp:9090 tcp:9090`)
      name: 'Ignite App' // would you like to see your app's name?
    })

    // forward all errors to Reactotron
    .use(errorPlugin({
      // ignore all error frames from react-native (for example)
      veto: (frame) =>
github zulip / zulip-mobile / src / boot / ReactotronConfig.js View on Github external
/* @flow strict */

let Reactotron; // eslint-disable-line import/no-mutable-exports

const inTest = typeof __TEST__ !== 'undefined' && __TEST__;

if (__DEV__ && !inTest) {
  // eslint-disable-next-line global-require, import/no-extraneous-dependencies
  Reactotron = require('reactotron-react-native').default;
  // eslint-disable-next-line global-require, import/no-extraneous-dependencies
  const { reactotronRedux } = require('reactotron-redux');
  Reactotron.configure()
    .useReactNative() // use all built-in react native plugins
    .use(reactotronRedux())
    .connect();
}

export default Reactotron;
github btomashvili / react-redux-firebase-boilerplate / src / app / Config / ReactotronConfig.js View on Github external
/* eslint-disable no-undef */

const Reactotron = require('reactotron-react-native').default;
const errorPlugin = require('reactotron-react-native').trackGlobalErrors;
const apisaucePlugin = require('reactotron-apisauce');

if (__DEV__) {
    Reactotron
    .configure({
      // host: '10.0.3.2' // default is localhost (on android don't forget to `adb reverse tcp:9090 tcp:9090`)
        name: 'Ignite App', // would you like to see your app's name?
    })

    // forward all errors to Reactotron
    .use(errorPlugin({
      // ignore all error frames from react-native (for example)
        veto: frame =>
        frame.fileName.indexOf('/node_modules/react-native/') >= 0,
    }))
github pillarwallet / pillarwallet / reactotron.config.js View on Github external
export const ReactotronConfig = function ReactotronConfig() {
  if (__DEV__ && !isTest) {
    const Reactotron = require('reactotron-react-native').default;

    const {
      trackGlobalErrors,
      openInEditor,
      overlay,
      networking,
    } = require('reactotron-react-native');

    const { reactotronRedux } = require('reactotron-redux');

    Reactotron.configure({
      name: 'PillarWallet',
      enabled: true,
    })
      .use(trackGlobalErrors())
      .use(openInEditor())
github Astrocoders / nubank-clone / src / redux / store.js View on Github external
import {
  createStore,
  combineReducers,
  applyMiddleware,
  compose,
} from 'redux'
import createLogger from 'redux-logger'
import * as reducers from './reducers'

let enhancers = () => {}

if(__DEV__){
  const Reactotron = require('reactotron-react-native').default
  const createTrackingEnhancer = require('reactotron-redux')

  enhancers = compose(
    createTrackingEnhancer(Reactotron, {}),
    applyMiddleware(createLogger())
  )
} else {
  enhancers = applyMiddleware(createLogger())
}

const reducer = combineReducers(reducers)
const store = createStore(reducer, enhancers)

export default store