Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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) =>
frame.fileName.indexOf('/node_modules/react-native/') >= 0
}))
// register apisauce so we can install a monitor later
.use(apisaucePlugin())
// setup the redux integration with Reactotron
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) =>
frame.fileName.indexOf('/node_modules/react-native/') >= 0
}))
// register apisauce so we can install a monitor later
.use(apisaucePlugin())
// setup the redux integration with Reactotron
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
}))
// register apisauce so we can install a monitor later
.use(apisaucePlugin())
// setup the redux integration with Reactotron
/* 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,
}))
// register apisauce so we can install a monitor later
.use(apisaucePlugin())
// let's connect!
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())
.use(overlay())
.use(reactotronRedux())
.use(networking())
.connect();
Reactotron.clear();
global.Reactotron = Reactotron;
}
};