Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import Reactotron from 'reactotron-react-native';
import { reactotronRedux } from 'reactotron-redux';
Reactotron.configure({ name: 'MDroid' }) // controls connection & communication settings
.useReactNative() // add all built-in react native plugins
.use(reactotronRedux())
.connect(); // let's connect!
console.tron = Reactotron;
import Reactotron from 'reactotron-react-native';
if (__DEV__) {
// __DEV__ is a global variable that returns true if user is emulating
// the app in an develop environment
// So, everything that is within this scope will not run in production environment.
const tron = Reactotron.configure()
.useReactNative()
.connect();
// we are getting the global variable `console` and creating new property called tron
// so we can call this command now in order to use Reactotron for debugging tool
console.tron = tron;
// cleaning the timeline every moment that we refresh our application
tron.clear();
}
/* eslint-disable no-console */
import Reactotron, { asyncStorage } from 'reactotron-react-native';
import { reactotronRedux } from 'reactotron-redux';
import apisaucePlugin from 'reactotron-apisauce';
import sagaPlugin from 'reactotron-redux-saga';
import Config from '.';
Reactotron.configure({
name: 'Thinger.io',
// host: '192.168.31.161',
})
.useReactNative()
.use(asyncStorage())
.use(apisaucePlugin())
.use(reactotronRedux())
.use(sagaPlugin());
if (Config.useReactotron) {
Reactotron.connect().clear();
console.tron = Reactotron;
} else {
console.tron = console.log;
}
async setup() {
// only run this in dev... metro bundler will ignore this block: 🎉
if (__DEV__) {
// configure reactotron
Tron.configure({
name: this.config.name || require("../../../package.json").name,
host: this.config.host,
})
// hookup middleware
Tron.useReactNative({
asyncStorage: this.config.useAsyncStorage ? undefined : false,
})
Tron.use(
mst({
filter: event => {
return !event.name.endsWith("@APPLY_SNAPSHOT")
},
}),
)
import Reactotron from "reactotron-react-native";
import { reactotronRedux as reduxPlugin } from "reactotron-redux";
import sagaPlugin from "reactotron-redux-saga";
import ImmutableObject from "seamless-immutable";
import Config from "../Config/DebugConfig";
if (Config.useReactotron) {
// https://github.com/infinitered/reactotron for more options!
Reactotron
.configure({ name: "Ignite App" })
.useReactNative()
.use(reduxPlugin({ onRestore: ImmutableObject }))
.use(sagaPlugin())
.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 as any).tron = Reactotron;
}
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()
}
import Reactotron from 'reactotron-react-native';
import {reactotronRedux} from 'reactotron-redux';
import sagaPlugin from 'reactotron-redux-saga'
/**
* Reactotron initialization.
*/
Reactotron
.configure({name: 'HelloWorld'})
.useReactNative()
.use(reactotronRedux())
.use(sagaPlugin())
.connect();
/**
* Clears debugger on reload.
*/
Reactotron.clear();
/**
* Util logging functions.
*/
console.tron = Reactotron.log;
console.display = (name, value, important = false) => Reactotron.display({
import Reactotron from 'reactotron-react-native'
console.tron = { log: Function.prototype };
if (__DEV__) {
Reactotron
.configure()
.useReactNative()
.connect();
console.tron = Reactotron;
}
import Reactotron from 'reactotron-react-native'
Reactotron
.configure()
.connect()
import Reactotron from "reactotron-react-native";
import { name } from "./app.json";
Reactotron.configure({
name
})
.useReactNative()
.connect();