From cecb05b60bd4564fce05732b0f56398fc863367b Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Wed, 2 Oct 2019 09:27:40 -0300 Subject: [PATCH] [FIX] Remove console on production mode (#1268) --- index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/index.js b/index.js index 302cfd8af..94cff43a3 100644 --- a/index.js +++ b/index.js @@ -8,6 +8,16 @@ joypixels.ascii = true; if (__DEV__) { require('./app/ReactotronConfig'); +} else { + console.log = () => {}; + console.time = () => {}; + console.timeLog = () => {}; + console.timeEnd = () => {}; + console.warn = () => {}; + console.count = () => {}; + console.countReset = () => {}; + console.error = () => {}; + console.info = () => {}; } AppRegistry.registerComponent(appName, () => require('./app/index').default);