mirror of
https://github.com/status-im/react-native.git
synced 2025-01-26 17:30:25 +00:00
[ReactNative] Remove global MutationObserver to fix Bluebird feature detection
This commit is contained in:
parent
a0998abd19
commit
c82893be8a
@ -60,6 +60,10 @@ function setupDocumentShim() {
|
||||
if (GLOBAL.document) {
|
||||
GLOBAL.document.createElement = null;
|
||||
}
|
||||
|
||||
// There is no DOM so MutationObserver doesn't make sense. It is used
|
||||
// as feature detection in Bluebird Promise implementation
|
||||
GLOBAL.MutationObserver = undefined;
|
||||
}
|
||||
|
||||
function handleErrorWithRedBox(e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user