mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-06 17:34:07 +08:00
[ReactNative] Disable console.error => redboxes to unwedge Android
This commit is contained in:
@@ -60,7 +60,11 @@
|
||||
if (global.reportException && level === LOG_LEVELS.error) {
|
||||
var error = new Error(str);
|
||||
error.framesToPop = 1;
|
||||
global.reportException(error);
|
||||
// TODO(sahrens): re-enable this when we have a way to turn
|
||||
// it off by default for MAdMan/Android, and/or all
|
||||
// consumers of console.error() are fixed, including
|
||||
// CatalystErrorHandlerModuleTestCase
|
||||
// global.reportException(error);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user