File tree Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 137
137
"react-dom" : " ^16.2.0" ,
138
138
"react-native-cli" : " ^2.0.1" ,
139
139
"react-test-renderer" : " ^16.0.0" ,
140
- "reactotron-react-native" : " ^1.12.2 " ,
141
- "reactotron-redux" : " ^1.12.2 " ,
140
+ "reactotron-react-native" : " ^1.14.0 " ,
141
+ "reactotron-redux" : " ^1.13.0 " ,
142
142
"stylelint" : " ^8.2.0" ,
143
143
"stylelint-config-standard" : " ^18.0.0" ,
144
144
"stylelint-config-styled-components" : " ^0.1.1" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,25 @@ import Reactotron from 'reactotron-react-native';
3
3
import { reactotronRedux } from 'reactotron-redux' ;
4
4
5
5
if ( __DEV__ && process . env . TRON_ENABLED ) {
6
+ /* eslint-disable no-console */
7
+ const hijackConsole = ( ) => {
8
+ const oldConsoleLog = console . log ;
9
+
10
+ console . log = ( ...args ) => {
11
+ oldConsoleLog ( ...args ) ;
12
+
13
+ Reactotron . display ( {
14
+ name : 'CONSOLE.LOG' ,
15
+ important : true ,
16
+ value : args ,
17
+ preview :
18
+ args . length > 0 && typeof args [ 0 ] === 'string' ? args [ 0 ] : null ,
19
+ } ) ;
20
+ } ;
21
+ } ;
22
+
23
+ hijackConsole ( ) ;
24
+
6
25
Reactotron . configure ( )
7
26
. useReactNative ( )
8
27
. use ( reactotronRedux ( ) )
Original file line number Diff line number Diff line change @@ -6974,7 +6974,7 @@ reactotron-core-client@^1.13.0:
6974
6974
ramda "^0.24.1"
6975
6975
ramdasauce "^2.0.0"
6976
6976
6977
- reactotron-react-native@^1.12.2 :
6977
+ reactotron-react-native@^1.14.0 :
6978
6978
version "1.14.0"
6979
6979
resolved "https://registry.yarnpkg.com/reactotron-react-native/-/reactotron-react-native-1.14.0.tgz#9f8ca3d9cd09aa2a6c5179307f97f923afe40a48"
6980
6980
dependencies :
@@ -6987,7 +6987,7 @@ reactotron-react-native@^1.12.2:
6987
6987
rn-host-detect "^1.1.3"
6988
6988
socket.io-client "~1.7.3"
6989
6989
6990
- reactotron-redux@^1.12.2 :
6990
+ reactotron-redux@^1.13.0 :
6991
6991
version "1.13.0"
6992
6992
resolved "https://registry.yarnpkg.com/reactotron-redux/-/reactotron-redux-1.13.0.tgz#20f8ce98cbb5e310e041dc85fc4dc4f904aa5dcc"
6993
6993
dependencies :
You can’t perform that action at this time.
0 commit comments