react-native/Libraries
Janic Duplessis f9e26b327b Fix polyfillLazyGlobal to work with allowTopLevelThis = false
Summary:
`polyfillLazyGlobal` used a top level this which get stripped by babel `transform-es2015-modules-commonjs` with the default config. This is mainly an issues for people not using the react native babel preset.

This also replaces a few GLOBAL with global for consistency with the rest of the file.

**Test plan**

Tested that there was an error when using `['transform-es2015-modules-commonjs', { strict: true, allowTopLevelThis: false }]` in the babel config and that it was fixed after applying my changes.

Fixes #7700
Closes https://github.com/facebook/react-native/pull/7971

Differential Revision: D3427675

Pulled By: javache

fbshipit-source-id: 48f258b0db1bf21185193bd56df453ced9242e64
2016-06-13 15:58:36 -07:00
..
ART Fixed ART views 2016-06-08 00:13:30 -07:00
ActionSheetIOS Update RCTActionSheetManager.m 2016-06-04 16:28:19 -07:00
AdSupport Text highlighting on iOS 2015-07-24 08:41:58 -08:00
Animated Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
AppRegistry Refactor BugReporing to avoid multiple registers 2016-05-18 14:28:26 -07:00
AppState Updated AppState module to use new emitter system 2016-05-23 09:13:37 -07:00
BatchedBridge Memoize lazy module configs 2016-05-16 03:58:23 -07:00
BugReporting Make BugReporting not pull in native module on require 2016-05-19 12:58:21 -07:00
CameraRoll Fixed website generation for CameraRoll.js 2016-06-08 04:13:49 -07:00
Components Note that MapView is not yet available on Android 2016-06-13 12:43:33 -07:00
CustomComponents Remove prop `onNavigate`. 2016-06-09 17:58:27 -07:00
DebugComponentHierarchy Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
Devtools Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
EventEmitter Add a removeListener method to DeviceEventEmitter for Framework consi… 2016-05-24 11:45:51 -07:00
Experimental Slower bounce 2016-06-10 17:28:52 -07:00
Fetch Reject promise if network request failed 2016-03-08 16:37:24 -08:00
Geolocation Update RCTNetworking, RCTNetInfo and RCTLocationManager to use new events system 2016-05-25 04:28:36 -07:00
Image Support multi sources for images 2016-06-13 14:13:25 -07:00
Inspector Remove unused rootTag 2016-06-08 14:43:30 -07:00
Interaction Make InteractionManager tasks cancellable 2016-06-08 22:58:19 -07:00
JavaScriptAppEngine Fix polyfillLazyGlobal to work with allowTopLevelThis = false 2016-06-13 15:58:36 -07:00
LayoutAnimation Properly validate layout animation config 2016-06-07 16:28:29 -07:00
Linking Hook up Android intent to Linking.js #7079 2016-06-05 18:58:24 -07:00
LinkingIOS Updated Linking and PushNotificationIOS modules to use NativeEventEmitter 2016-05-27 10:28:23 -07:00
Modal explicit type args in react-native-github 2016-05-24 18:28:26 -07:00
NativeAnimation Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
NavigationExperimental Remove prop `onNavigate`. 2016-06-09 17:58:27 -07:00
Network v0.27.0: fbsource 2016-06-13 14:28:25 -07:00
PushNotificationIOS Correctly passes localNotification to app on wakeup 2016-06-10 05:28:41 -07:00
QuickPerformanceLogger added QPL for main interactions 2015-09-29 22:25:23 -07:00
RCTTest Updated AppState module to use new emitter system 2016-05-23 09:13:37 -07:00
RKBackendNode Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
ReactIOS Remove unused rootTag 2016-06-08 14:43:30 -07:00
ReactNative Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
Sample Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
Settings Updated AppState module to use new emitter system 2016-05-23 09:13:37 -07:00
Storage change undeclared variable to intended value 2016-05-26 01:43:30 -07:00
StyleSheet Add support for reverse flex directions on Android and iOS 2016-06-10 03:28:45 -07:00
Text adds textAlignment to placeholder to match textViews alignment (for m… 2016-06-10 20:28:23 -07:00
Utilities Fix truncate tests 2016-06-13 10:13:36 -07:00
Vibration Add support for vibration patterns 2016-03-29 21:45:20 -07:00
WebSocket Changed the host for RCTWebSocketExecutor to the one retrieved from the bridge. 2016-06-13 13:28:28 -07:00
react-native Open sourced KeyboardAvoidingView 2016-06-07 07:43:49 -07:00
vendor Fixed NativeEventListener deregistration 2016-05-16 04:13:56 -07:00
Promise.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
promiseRejectionIsError.js Add possibility to `console.error`/redbox on promise rejections 2016-03-15 05:22:22 -07:00