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 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
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) =>
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) =>
/* @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;
/* 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,
}))
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())
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