[FIX] Remove console on production mode (#1268)

This commit is contained in:
Djorkaeff Alexandre 2019-10-02 09:27:40 -03:00 committed by Diego Mello
parent 121ff45f90
commit cecb05b60b
1 changed files with 10 additions and 0 deletions

View File

@ -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);