Remove JS logs from app

This commit is contained in:
Elliot Hesp 2017-05-25 09:15:35 +01:00
parent da889b32fd
commit 8839aa1e43
2 changed files with 3 additions and 3 deletions

View File

@ -76,7 +76,7 @@ class CoreContainer extends React.Component {
}; };
render() { render() {
return <Navigator />; return <Navigator onNavigationStateChange={null} />;
} }
} }

View File

@ -11,7 +11,7 @@ function setup(done) {
const isDev = global.isDebuggingInChrome || __DEV__; const isDev = global.isDebuggingInChrome || __DEV__;
const logger = reduxLogger({ const logger = reduxLogger({
predicate: () => isDev, predicate: () => false,
collapsed: true, collapsed: true,
duration: true, duration: true,
}); });
@ -24,7 +24,7 @@ function setup(done) {
middlewares.push(applyMiddleware(...[thunk])); middlewares.push(applyMiddleware(...[thunk]));
if (isDev) { if (isDev) {
middlewares.push(applyMiddleware(...[logger])); // middlewares.push(applyMiddleware(...[logger]));
middlewares.push(applyMiddleware(require('redux-immutable-state-invariant')())); middlewares.push(applyMiddleware(require('redux-immutable-state-invariant')()));
} }