Updates from Wed Mar 4

- [react-packager] Start converting options to query params | Amjad Masad
- [ReactNative] Replace js long constants with strings | Tadeu Zagallo
- React Native: Remove Unnecessary `document.body` Shim | Tim Yung
- [ReactNative] Use spread operator and .propTypes for ScrollView/ListView | Christopher Chedeau
This commit is contained in:
Christopher Chedeau
2015-03-04 21:06:49 -08:00
parent b9ab607197
commit b87ba87e47
15 changed files with 212 additions and 221 deletions

View File

@@ -51,13 +51,10 @@ function setupDocumentShim() {
throw getInvalidGlobalUseError('Image');
}
};
if (!GLOBAL.document) {
// This shouldn't be needed but scroller library fails without it. If
// we fixed the scroller, we wouldn't need this.
GLOBAL.document = {body: {}};
}
// Force `ExecutionEnvironment.canUseDOM` to be false.
GLOBAL.document.createElement = null;
if (GLOBAL.document) {
GLOBAL.document.createElement = null;
}
}
function handleErrorWithRedBox(e) {