mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 01:40:08 +00:00
[ReactNative] Only report console.error()s as exceptions in dev mode
This commit is contained in:
parent
824da1bada
commit
e5f47731c6
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user