mirror of
https://github.com/status-im/react-native.git
synced 2025-02-24 23:28:12 +00:00
[react-native] Only intercept console.error on iOS
This commit is contained in:
parent
8fe6626d5f
commit
4f70e58b37
@ -82,7 +82,11 @@ function setupRedBoxErrorHandler() {
|
||||
function setupRedBoxConsoleErrorHandler() {
|
||||
// ExceptionsManager transitively requires Promise so we install it after
|
||||
var ExceptionsManager = require('ExceptionsManager');
|
||||
ExceptionsManager.installConsoleErrorReporter();
|
||||
var Platform = require('Platform');
|
||||
// TODO (#6925182): Enable console.error redbox on Android
|
||||
if (Platform.OS === 'ios') {
|
||||
ExceptionsManager.installConsoleErrorReporter();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user