Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { reactotronRedux } from 'reactotron-redux';
// uncomment the following lines to test on a device
// let scriptHostname;
// if (__DEV__) {
// const scriptURL = NativeModules.SourceCode.scriptURL;
// scriptHostname = scriptURL.split('://')[1].split(':')[0];
// }
Reactotron.configure(/*{ host: scriptHostname }*/) // controls connection & communication settings
.useReactNative() // add all built-in react native plugins
.use(reactotronRedux())
.use(asyncStorage())
.use(networking())
.use(openInEditor())
.connect();
import thunk from 'redux-thunk';
import createSagaMiddleware from 'redux-saga';
import Reactotron, { trackGlobalErrors, networking, openInEditor, asyncStorage } from 'reactotron-react-native'; // eslint-disable-line
import sagaPlugin from 'reactotron-redux-saga';// eslint-disable-line
import { reactotronRedux } from 'reactotron-redux'; // eslint-disable-line
import { rootSaga } from 'sagas';
if (__DEV__) {
Reactotron.configure()
.use(reactotronRedux())
.use(sagaPlugin())
.use(trackGlobalErrors())
.use(networking())
.use(openInEditor())
.use(asyncStorage())
.connect()
.clear();
window.tron = Reactotron; // eslint-disable-line
}
const sagaMonitor = __DEV__ && Reactotron.createSagaMonitor();
const sagaMiddleware = createSagaMiddleware({ sagaMonitor });
const authMiddleware = ({ getState }) => next => action =>
action && action.type && action.type.endsWith('REQUEST')
? next({ ...action, auth: getState().user.token })
: next(action);
const middlewareList = [thunk, authMiddleware, sagaMiddleware];
import Config from '../Config/DebugConfig'
import { NativeModules } from 'react-native'
import Reactotron, {
trackGlobalErrors,
openInEditor,
asyncStorage
} from 'reactotron-react-native'
import { reactotronRedux } from 'reactotron-redux'
import sagaPlugin from 'reactotron-redux-saga'
if (Config.useReactotron) {
const scriptURL = NativeModules.SourceCode.scriptURL
const scriptHostname = scriptURL.split('://')[1].split(':')[0]
Reactotron.configure({ host: scriptHostname, name: 'Textile' })
.use(trackGlobalErrors())
.use(openInEditor())
.useReactNative()
.use(asyncStorage())
.use(reactotronRedux())
.use(sagaPlugin())
.connect()
Reactotron.clear()
}
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;
}
};