[FIX] Remove console on production mode (#1268)
This commit is contained in:
parent
121ff45f90
commit
cecb05b60b
10
index.js
10
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);
|
||||
|
|
Loading…
Reference in New Issue