Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// you can flag some of your actions as important by returning true here
isActionImportant: action => action.type === StartupTypes.STARTUP,
// you can flag to exclude certain types too... especially the chatty ones
// except: ['EFFECT_TRIGGERED', 'EFFECT_RESOLVED', 'EFFECT_REJECTED', 'persist/REHYDRATE'],
// Fires when Reactotron uploads a new copy of the state tree. Since our reducers are
// immutable with `seamless-immutable`, we ensure we convert to that format.
onRestore: state => Immutable(state)
}))
// let's connect!
.connect()
// Let's clear Reactotron on every time we load the app
Reactotron.clear()
// Totally hacky, but this allows you to not both importing reactotron-react-native
// on every file. This is just DEV mode, so no big deal.
console.tron = Reactotron
} else {
// a mock version should you decide to leave console.tron in your codebase
console.tron = {
log: () => false,
warn: () => false,
error: () => false,
display: () => false,
image: () => false
}
}
// you can flag to exclude certain types too... especially the chatty ones
// except: ['EFFECT_TRIGGERED', 'EFFECT_RESOLVED', 'EFFECT_REJECTED', 'persist/REHYDRATE'],
// Fires when Reactotron uploads a new copy of the state tree. Since our reducers are
// immutable with `seamless-immutable`, we ensure we convert to that format.
onRestore: state => Immutable(state)
}))
// register the redux-saga plugin so we can use the monitor in CreateStore.js
.use(sagaPlugin())
// let's connect!
.connect()
// Let's clear Reactotron on every time we load the app
Reactotron.clear()
// Totally hacky, but this allows you to not both importing reactotron-react-native
// on every file. This is just DEV mode, so no big deal.
console.tron = Reactotron
} else {
// a mock version should you decide to leave console.tron in your codebase
console.tron = {
log: () => false,
warn: () => false,
error: () => false,
display: () => false,
image: () => false
}
}
// you can flag to exclude certain types too... especially the chatty ones
// except: ['EFFECT_TRIGGERED', 'EFFECT_RESOLVED', 'EFFECT_REJECTED', 'persist/REHYDRATE'],
// Fires when Reactotron uploads a new copy of the state tree. Since our reducers are
// immutable with `seamless-immutable`, we ensure we convert to that format.
onRestore: state => Immutable(state)
}))
// register the redux-saga plugin so we can use the monitor in CreateStore.js
.use(sagaPlugin())
// let's connect!
.connect()
// Let's clear Reactotron on every time we load the app
Reactotron.clear()
// Totally hacky, but this allows you to not both importing reactotron-react-native
// on every file. This is just DEV mode, so no big deal.
console.tron = Reactotron
} else {
// a mock version should you decide to leave console.tron in your codebase
console.tron = {
log: () => false,
warn: () => false,
error: () => false,
display: () => false,
image: () => false
}
}
} = 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;
}
};