Last active
November 20, 2020 15:37
-
-
Save GuilhermeLis/d79c10bb7cd03a9472c66c557eb03271 to your computer and use it in GitHub Desktop.
ReactotronConfig from Redux with AsyncStorage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Reactotron from 'reactotron-react-native'; | |
import { reactotronRedux } from 'reactotron-redux'; | |
import reactotronSaga from 'reactotron-redux-saga'; | |
declare global { | |
interface Console { | |
tron: any; | |
} | |
} | |
if ('__DEV__') { | |
const tron = Reactotron.configure({ host: 'put your ip here', port: 9090 }) | |
.useReactNative({ errors: true, editor: true }) | |
.use(reactotronRedux()) | |
.use(reactotronSaga()) | |
.connect(); | |
tron.clear!(); | |
console.tron = tron; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment