mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-30 09:08:40 +08:00
[ReactNative] Only report console.error()s as exceptions in dev mode
This commit is contained in:
@@ -84,7 +84,7 @@ function setupRedBoxConsoleErrorHandler() {
|
||||
var ExceptionsManager = require('ExceptionsManager');
|
||||
var Platform = require('Platform');
|
||||
// TODO (#6925182): Enable console.error redbox on Android
|
||||
if (Platform.OS === 'ios') {
|
||||
if (__DEV__ && Platform.OS === 'ios') {
|
||||
ExceptionsManager.installConsoleErrorReporter();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user