Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { NativeModules } from 'react-native';
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 offline from 'offline';
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 Reactotron, { networking } from 'reactotron-react-native'
import { reactotronRedux } from 'reactotron-redux'
Reactotron
.configure()
.use(reactotronRedux())
.useReactNative(networking())
.connect()
console.tron = Reactotron
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;
}
};