[ReactNative] Only report console.error()s as exceptions in dev mode

This commit is contained in:
Philipp von Weitershausen 2015-04-30 14:18:00 -07:00
parent 824da1bada
commit e5f47731c6
1 changed files with 1 additions and 1 deletions

View File

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