mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-29 15:59:39 +08:00
Remove RCTLog from prod builds
Reviewed By: javache Differential Revision: D3437532 fbshipit-source-id: 973491fe74614d381a173a067fb2dd376e14a36a
This commit is contained in:
committed by
Facebook Github Bot 0
parent
1579a72ca6
commit
5db4aad347
@@ -50,7 +50,9 @@ function setUpConsole() {
|
||||
const ExceptionsManager = require('ExceptionsManager');
|
||||
ExceptionsManager.installConsoleErrorReporter();
|
||||
|
||||
require('RCTLog');
|
||||
if (__DEV__) {
|
||||
require('RCTLog');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user