diff --git a/Examples/2048/Game2048.js b/Examples/2048/Game2048.js index a6c97a3e3ed..c19e7cf2deb 100644 --- a/Examples/2048/Game2048.js +++ b/Examples/2048/Game2048.js @@ -16,13 +16,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { AppRegistry, StyleSheet, Text, View, -} = React; +} = ReactNative; var Animated = require('Animated'); var GameBoard = require('GameBoard'); diff --git a/Examples/Movies/MovieCell.js b/Examples/Movies/MovieCell.js index c90931c0876..64cfcfedb55 100644 --- a/Examples/Movies/MovieCell.js +++ b/Examples/Movies/MovieCell.js @@ -15,7 +15,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Image, Platform, @@ -24,7 +25,7 @@ var { TouchableHighlight, TouchableNativeFeedback, View -} = React; +} = ReactNative; var getStyleFromScore = require('./getStyleFromScore'); var getImageSource = require('./getImageSource'); diff --git a/Examples/Movies/MovieScreen.js b/Examples/Movies/MovieScreen.js index ff228a8a3e7..b83d00d0186 100644 --- a/Examples/Movies/MovieScreen.js +++ b/Examples/Movies/MovieScreen.js @@ -15,14 +15,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Image, ScrollView, StyleSheet, Text, View, -} = React; +} = ReactNative; var getImageSource = require('./getImageSource'); var getStyleFromScore = require('./getStyleFromScore'); diff --git a/Examples/Movies/MoviesApp.android.js b/Examples/Movies/MoviesApp.android.js index 5dfb57fd2fd..2b40ea491f0 100644 --- a/Examples/Movies/MoviesApp.android.js +++ b/Examples/Movies/MoviesApp.android.js @@ -16,7 +16,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { AppRegistry, BackAndroid, @@ -24,7 +25,7 @@ var { StyleSheet, ToolbarAndroid, View, -} = React; +} = ReactNative; var MovieScreen = require('./MovieScreen'); var SearchScreen = require('./SearchScreen'); diff --git a/Examples/Movies/MoviesApp.ios.js b/Examples/Movies/MoviesApp.ios.js index 1c6fc4b4fb4..cce3216b18b 100644 --- a/Examples/Movies/MoviesApp.ios.js +++ b/Examples/Movies/MoviesApp.ios.js @@ -16,12 +16,13 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { AppRegistry, NavigatorIOS, StyleSheet, -} = React; +} = ReactNative; var SearchScreen = require('./SearchScreen'); diff --git a/Examples/Movies/SearchBar.android.js b/Examples/Movies/SearchBar.android.js index 2e12ff48800..d4110ef9de1 100644 --- a/Examples/Movies/SearchBar.android.js +++ b/Examples/Movies/SearchBar.android.js @@ -16,7 +16,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Image, Platform, @@ -25,7 +26,7 @@ var { StyleSheet, TouchableNativeFeedback, View, -} = React; +} = ReactNative; var IS_RIPPLE_EFFECT_SUPPORTED = Platform.Version >= 21; diff --git a/Examples/Movies/SearchBar.ios.js b/Examples/Movies/SearchBar.ios.js index f4a2354ef93..754a10b0ab6 100644 --- a/Examples/Movies/SearchBar.ios.js +++ b/Examples/Movies/SearchBar.ios.js @@ -16,13 +16,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { ActivityIndicatorIOS, TextInput, StyleSheet, View, -} = React; +} = ReactNative; var SearchBar = React.createClass({ render: function() { diff --git a/Examples/Movies/SearchScreen.js b/Examples/Movies/SearchScreen.js index 2e681ed34f5..88eabcdee33 100644 --- a/Examples/Movies/SearchScreen.js +++ b/Examples/Movies/SearchScreen.js @@ -15,7 +15,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { ActivityIndicatorIOS, ListView, @@ -24,7 +25,7 @@ var { StyleSheet, Text, View, -} = React; +} = ReactNative; var TimerMixin = require('react-timer-mixin'); var invariant = require('fbjs/lib/invariant'); diff --git a/Examples/Movies/getStyleFromScore.js b/Examples/Movies/getStyleFromScore.js index 1d5b599b62b..a432be9bd5e 100644 --- a/Examples/Movies/getStyleFromScore.js +++ b/Examples/Movies/getStyleFromScore.js @@ -15,10 +15,10 @@ */ 'use strict'; -var React = require('react-native'); +var ReactNative = require('react-native'); var { StyleSheet, -} = React; +} = ReactNative; var MAX_VALUE = 200; diff --git a/Examples/TicTacToe/TicTacToeApp.js b/Examples/TicTacToe/TicTacToeApp.js index 3b562194a04..860d5c53d8c 100755 --- a/Examples/TicTacToe/TicTacToeApp.js +++ b/Examples/TicTacToe/TicTacToeApp.js @@ -16,14 +16,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { AppRegistry, StyleSheet, Text, TouchableHighlight, View, -} = React; +} = ReactNative; class Board { grid: Array>; diff --git a/Examples/UIExplorer/AccessibilityAndroidExample.android.js b/Examples/UIExplorer/AccessibilityAndroidExample.android.js index 3df94c60317..ff1f215dab7 100644 --- a/Examples/UIExplorer/AccessibilityAndroidExample.android.js +++ b/Examples/UIExplorer/AccessibilityAndroidExample.android.js @@ -14,14 +14,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { StyleSheet, Text, View, ToastAndroid, TouchableWithoutFeedback, -} = React; +} = ReactNative; var UIExplorerBlock = require('./UIExplorerBlock'); var UIExplorerPage = require('./UIExplorerPage'); diff --git a/Examples/UIExplorer/AccessibilityIOSExample.js b/Examples/UIExplorer/AccessibilityIOSExample.js index d543d7253b0..8f8329f5ef8 100644 --- a/Examples/UIExplorer/AccessibilityIOSExample.js +++ b/Examples/UIExplorer/AccessibilityIOSExample.js @@ -15,11 +15,12 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Text, View, -} = React; +} = ReactNative; var AccessibilityIOSExample = React.createClass({ render() { diff --git a/Examples/UIExplorer/ActionSheetIOSExample.js b/Examples/UIExplorer/ActionSheetIOSExample.js index b749400c037..0442682142a 100644 --- a/Examples/UIExplorer/ActionSheetIOSExample.js +++ b/Examples/UIExplorer/ActionSheetIOSExample.js @@ -15,14 +15,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { ActionSheetIOS, StyleSheet, Text, UIManager, View, -} = React; +} = ReactNative; var BUTTONS = [ 'Option 0', diff --git a/Examples/UIExplorer/ActivityIndicatorIOSExample.js b/Examples/UIExplorer/ActivityIndicatorIOSExample.js index 9655d680c71..6923936d452 100644 --- a/Examples/UIExplorer/ActivityIndicatorIOSExample.js +++ b/Examples/UIExplorer/ActivityIndicatorIOSExample.js @@ -15,12 +15,13 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { ActivityIndicatorIOS, StyleSheet, View, -} = React; +} = ReactNative; var TimerMixin = require('react-timer-mixin'); var ToggleAnimatingActivityIndicator = React.createClass({ diff --git a/Examples/UIExplorer/AdSupportIOSExample.js b/Examples/UIExplorer/AdSupportIOSExample.js index 1626249e704..dab5e88fb07 100644 --- a/Examples/UIExplorer/AdSupportIOSExample.js +++ b/Examples/UIExplorer/AdSupportIOSExample.js @@ -15,13 +15,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { AdSupportIOS, StyleSheet, Text, View, -} = React; +} = ReactNative; exports.framework = 'React'; exports.title = 'Advertising ID'; diff --git a/Examples/UIExplorer/AlertExample.js b/Examples/UIExplorer/AlertExample.js index 37f47dd9b01..85416e06968 100644 --- a/Examples/UIExplorer/AlertExample.js +++ b/Examples/UIExplorer/AlertExample.js @@ -15,14 +15,15 @@ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Alert, StyleSheet, Text, TouchableHighlight, View, -} = React; +} = ReactNative; var UIExplorerBlock = require('./UIExplorerBlock'); diff --git a/Examples/UIExplorer/AlertIOSExample.js b/Examples/UIExplorer/AlertIOSExample.js index d7f0bcf0d46..112149e1657 100644 --- a/Examples/UIExplorer/AlertIOSExample.js +++ b/Examples/UIExplorer/AlertIOSExample.js @@ -15,14 +15,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { StyleSheet, View, Text, TouchableHighlight, AlertIOS, -} = React; +} = ReactNative; var { SimpleAlertExampleBlock } = require('./AlertExample'); diff --git a/Examples/UIExplorer/AnimatedExample.js b/Examples/UIExplorer/AnimatedExample.js index 1068ac00026..d11abbf9024 100644 --- a/Examples/UIExplorer/AnimatedExample.js +++ b/Examples/UIExplorer/AnimatedExample.js @@ -15,14 +15,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Animated, Easing, StyleSheet, Text, View, -} = React; +} = ReactNative; var UIExplorerButton = require('./UIExplorerButton'); exports.framework = 'React'; diff --git a/Examples/UIExplorer/AnimatedGratuitousApp/AnExApp.js b/Examples/UIExplorer/AnimatedGratuitousApp/AnExApp.js index c87bc29823b..a6c161d9744 100644 --- a/Examples/UIExplorer/AnimatedGratuitousApp/AnExApp.js +++ b/Examples/UIExplorer/AnimatedGratuitousApp/AnExApp.js @@ -16,14 +16,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Animated, LayoutAnimation, PanResponder, StyleSheet, View, -} = React; +} = ReactNative; var AnExSet = require('AnExSet'); diff --git a/Examples/UIExplorer/AnimatedGratuitousApp/AnExBobble.js b/Examples/UIExplorer/AnimatedGratuitousApp/AnExBobble.js index 39f15a8ec8e..574e1a2b7d0 100644 --- a/Examples/UIExplorer/AnimatedGratuitousApp/AnExBobble.js +++ b/Examples/UIExplorer/AnimatedGratuitousApp/AnExBobble.js @@ -16,14 +16,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Animated, Image, PanResponder, StyleSheet, View, -} = React; +} = ReactNative; var NUM_BOBBLES = 5; var RAD_EACH = Math.PI / 2 / (NUM_BOBBLES - 2); diff --git a/Examples/UIExplorer/AnimatedGratuitousApp/AnExChained.js b/Examples/UIExplorer/AnimatedGratuitousApp/AnExChained.js index 596617f1780..aad9c5839c1 100644 --- a/Examples/UIExplorer/AnimatedGratuitousApp/AnExChained.js +++ b/Examples/UIExplorer/AnimatedGratuitousApp/AnExChained.js @@ -16,14 +16,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Animated, Image, PanResponder, StyleSheet, View, -} = React; +} = ReactNative; class AnExChained extends React.Component { state: any; diff --git a/Examples/UIExplorer/AnimatedGratuitousApp/AnExScroll.js b/Examples/UIExplorer/AnimatedGratuitousApp/AnExScroll.js index e7712cfc52e..40ad63e3e34 100644 --- a/Examples/UIExplorer/AnimatedGratuitousApp/AnExScroll.js +++ b/Examples/UIExplorer/AnimatedGratuitousApp/AnExScroll.js @@ -16,7 +16,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Animated, Image, @@ -24,7 +25,7 @@ var { StyleSheet, Text, View, -} = React; +} = ReactNative; class AnExScroll extends React.Component { state: any = { scrollX: new Animated.Value(0) }; diff --git a/Examples/UIExplorer/AnimatedGratuitousApp/AnExSet.js b/Examples/UIExplorer/AnimatedGratuitousApp/AnExSet.js index 769a0f79a2d..d67931387ad 100644 --- a/Examples/UIExplorer/AnimatedGratuitousApp/AnExSet.js +++ b/Examples/UIExplorer/AnimatedGratuitousApp/AnExSet.js @@ -16,14 +16,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Animated, PanResponder, StyleSheet, Text, View, -} = React; +} = ReactNative; var AnExBobble = require('./AnExBobble'); var AnExChained = require('./AnExChained'); diff --git a/Examples/UIExplorer/AnimatedGratuitousApp/AnExTilt.js b/Examples/UIExplorer/AnimatedGratuitousApp/AnExTilt.js index 42b5523c011..8eb97844bb7 100644 --- a/Examples/UIExplorer/AnimatedGratuitousApp/AnExTilt.js +++ b/Examples/UIExplorer/AnimatedGratuitousApp/AnExTilt.js @@ -16,14 +16,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Animated, Image, PanResponder, StyleSheet, View, -} = React; +} = ReactNative; class AnExTilt extends React.Component { state: any; diff --git a/Examples/UIExplorer/AppStateExample.js b/Examples/UIExplorer/AppStateExample.js index 07d70be82de..81403941420 100644 --- a/Examples/UIExplorer/AppStateExample.js +++ b/Examples/UIExplorer/AppStateExample.js @@ -16,12 +16,13 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { AppState, Text, View -} = React; +} = ReactNative; var AppStateSubscription = React.createClass({ getInitialState() { diff --git a/Examples/UIExplorer/AppStateIOSExample.js b/Examples/UIExplorer/AppStateIOSExample.js index 9cf15fad1c6..10aaed8aadd 100644 --- a/Examples/UIExplorer/AppStateIOSExample.js +++ b/Examples/UIExplorer/AppStateIOSExample.js @@ -16,12 +16,13 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { AppStateIOS, Text, View -} = React; +} = ReactNative; var AppStateSubscription = React.createClass({ getInitialState() { diff --git a/Examples/UIExplorer/AssetScaledImageExample.js b/Examples/UIExplorer/AssetScaledImageExample.js index dbfe7afb7b6..6b68e2aabb0 100644 --- a/Examples/UIExplorer/AssetScaledImageExample.js +++ b/Examples/UIExplorer/AssetScaledImageExample.js @@ -15,13 +15,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Image, StyleSheet, View, ScrollView -} = React; +} = ReactNative; var AssetScaledImageExample = React.createClass({ diff --git a/Examples/UIExplorer/AsyncStorageExample.js b/Examples/UIExplorer/AsyncStorageExample.js index a3ca7643747..f2ee7da4738 100644 --- a/Examples/UIExplorer/AsyncStorageExample.js +++ b/Examples/UIExplorer/AsyncStorageExample.js @@ -15,13 +15,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { AsyncStorage, PickerIOS, Text, View -} = React; +} = ReactNative; var PickerItemIOS = PickerIOS.Item; var STORAGE_KEY = '@AsyncStorageExample:key'; diff --git a/Examples/UIExplorer/BorderExample.js b/Examples/UIExplorer/BorderExample.js index 2dedfdd8e6a..e1164844628 100644 --- a/Examples/UIExplorer/BorderExample.js +++ b/Examples/UIExplorer/BorderExample.js @@ -13,11 +13,11 @@ */ 'use strict'; -var React = require('react-native'); +var ReactNative = require('react-native'); var { StyleSheet, View -} = React; +} = ReactNative; var styles = StyleSheet.create({ box: { diff --git a/Examples/UIExplorer/BoxShadowExample.js b/Examples/UIExplorer/BoxShadowExample.js index 12568c1b67b..0858d36bb18 100644 --- a/Examples/UIExplorer/BoxShadowExample.js +++ b/Examples/UIExplorer/BoxShadowExample.js @@ -13,12 +13,12 @@ */ 'use strict'; -var React = require('react-native'); +var ReactNative = require('react-native'); var { Image, StyleSheet, View -} = React; +} = ReactNative; var styles = StyleSheet.create({ box: { diff --git a/Examples/UIExplorer/CameraRollExample.js b/Examples/UIExplorer/CameraRollExample.js index d431560722f..9716e6b8030 100644 --- a/Examples/UIExplorer/CameraRollExample.js +++ b/Examples/UIExplorer/CameraRollExample.js @@ -15,7 +15,8 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const { CameraRoll, Image, @@ -25,7 +26,7 @@ const { Text, View, TouchableOpacity -} = React; +} = ReactNative; const CameraRollView = require('./CameraRollView'); diff --git a/Examples/UIExplorer/CameraRollView.js b/Examples/UIExplorer/CameraRollView.js index 73491d2a569..3dca7867f71 100644 --- a/Examples/UIExplorer/CameraRollView.js +++ b/Examples/UIExplorer/CameraRollView.js @@ -16,7 +16,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { ActivityIndicatorIOS, CameraRoll, @@ -25,7 +26,7 @@ var { Platform, StyleSheet, View, -} = React; +} = ReactNative; var groupByEveryN = require('groupByEveryN'); var logError = require('logError'); diff --git a/Examples/UIExplorer/ClipboardExample.js b/Examples/UIExplorer/ClipboardExample.js index fa2814a2a7d..59373f9fd19 100644 --- a/Examples/UIExplorer/ClipboardExample.js +++ b/Examples/UIExplorer/ClipboardExample.js @@ -15,12 +15,13 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Clipboard, View, Text, -} = React; +} = ReactNative; var ClipboardExample = React.createClass({ getInitialState() { diff --git a/Examples/UIExplorer/DatePickerAndroidExample.js b/Examples/UIExplorer/DatePickerAndroidExample.js index 355d8cbd232..42740cf9022 100644 --- a/Examples/UIExplorer/DatePickerAndroidExample.js +++ b/Examples/UIExplorer/DatePickerAndroidExample.js @@ -13,13 +13,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { DatePickerAndroid, StyleSheet, Text, TouchableWithoutFeedback, -} = React; +} = ReactNative; var UIExplorerBlock = require('./UIExplorerBlock'); var UIExplorerPage = require('./UIExplorerPage'); diff --git a/Examples/UIExplorer/DatePickerIOSExample.js b/Examples/UIExplorer/DatePickerIOSExample.js index fc7686880ad..412f2af33e5 100644 --- a/Examples/UIExplorer/DatePickerIOSExample.js +++ b/Examples/UIExplorer/DatePickerIOSExample.js @@ -15,14 +15,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { DatePickerIOS, StyleSheet, Text, TextInput, View, -} = React; +} = ReactNative; var DatePickerExample = React.createClass({ getDefaultProps: function () { diff --git a/Examples/UIExplorer/GeolocationExample.js b/Examples/UIExplorer/GeolocationExample.js index 61d7d3778bd..98177f43765 100644 --- a/Examples/UIExplorer/GeolocationExample.js +++ b/Examples/UIExplorer/GeolocationExample.js @@ -17,12 +17,13 @@ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { StyleSheet, Text, View, -} = React; +} = ReactNative; exports.framework = 'React'; exports.title = 'Geolocation'; diff --git a/Examples/UIExplorer/ImageCapInsetsExample.js b/Examples/UIExplorer/ImageCapInsetsExample.js index f75f7da98d3..48a9a986298 100644 --- a/Examples/UIExplorer/ImageCapInsetsExample.js +++ b/Examples/UIExplorer/ImageCapInsetsExample.js @@ -16,13 +16,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Image, StyleSheet, Text, View, -} = React; +} = ReactNative; var ImageCapInsetsExample = React.createClass({ render: function() { diff --git a/Examples/UIExplorer/ImageEditingExample.js b/Examples/UIExplorer/ImageEditingExample.js index 8cd966f62c2..20e710f9215 100644 --- a/Examples/UIExplorer/ImageEditingExample.js +++ b/Examples/UIExplorer/ImageEditingExample.js @@ -16,7 +16,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { CameraRoll, Image, @@ -29,7 +30,7 @@ var { TouchableHighlight, UIManager, View, -} = React; +} = ReactNative; var PAGE_SIZE = 20; diff --git a/Examples/UIExplorer/ImageExample.js b/Examples/UIExplorer/ImageExample.js index 4fb0722d854..3b640859dd5 100644 --- a/Examples/UIExplorer/ImageExample.js +++ b/Examples/UIExplorer/ImageExample.js @@ -22,7 +22,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Image, Platform, @@ -30,7 +31,7 @@ var { Text, View, ActivityIndicatorIOS -} = React; +} = ReactNative; var base64Icon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABLCAQAAACSR7JhAAADtUlEQVR4Ac3YA2Bj6QLH0XPT1Fzbtm29tW3btm3bfLZtv7e2ObZnms7d8Uw098tuetPzrxv8wiISrtVudrG2JXQZ4VOv+qUfmqCGGl1mqLhoA52oZlb0mrjsnhKpgeUNEs91Z0pd1kvihA3ULGVHiQO2narKSHKkEMulm9VgUyE60s1aWoMQUbpZOWE+kaqs4eLEjdIlZTcFZB0ndc1+lhB1lZrIuk5P2aib1NBpZaL+JaOGIt0ls47SKzLC7CqrlGF6RZ09HGoNy1lYl2aRSWL5GuzqWU1KafRdoRp0iOQEiDzgZPnG6DbldcomadViflnl/cL93tOoVbsOLVM2jylvdWjXolWX1hmfZbGR/wjypDjFLSZIRov09BgYmtUqPQPlQrPapecLgTIy0jMgPKtTeob2zWtrGH3xvjUkPCtNg/tm1rjwrMa+mdUkPd3hWbH0jArPGiU9ufCsNNWFZ40wpwn+62/66R2RUtoso1OB34tnLOcy7YB1fUdc9e0q3yru8PGM773vXsuZ5YIZX+5xmHwHGVvlrGPN6ZSiP1smOsMMde40wKv2VmwPPVXNut4sVpUreZiLBHi0qln/VQeI/LTMYXpsJtFiclUN+5HVZazim+Ky+7sAvxWnvjXrJFneVtLWLyPJu9K3cXLWeOlbMTlrIelbMDlrLenrjEQOtIF+fuI9xRp9ZBFp6+b6WT8RrxEpdK64BuvHgDk+vUy+b5hYk6zfyfs051gRoNO1usU12WWRWL73/MMEy9pMi9qIrR4ZpV16Rrvduxazmy1FSvuFXRkqTnE7m2kdb5U8xGjLw/spRr1uTov4uOgQE+0N/DvFrG/Jt7i/FzwxbA9kDanhf2w+t4V97G8lrT7wc08aA2QNUkuTfW/KimT01wdlfK4yEw030VfT0RtZbzjeMprNq8m8tnSTASrTLti64oBNdpmMQm0eEwvfPwRbUBywG5TzjPCsdwk3IeAXjQblLCoXnDVeoAz6SfJNk5TTzytCNZk/POtTSV40NwOFWzw86wNJRpubpXsn60NJFlHeqlYRbslqZm2jnEZ3qcSKgm0kTli3zZVS7y/iivZTweYXJ26Y+RTbV1zh3hYkgyFGSTKPfRVbRqWWVReaxYeSLarYv1Qqsmh1s95S7G+eEWK0f3jYKTbV6bOwepjfhtafsvUsqrQvrGC8YhmnO9cSCk3yuY984F1vesdHYhWJ5FvASlacshUsajFt2mUM9pqzvKGcyNJW0arTKN1GGGzQlH0tXwLDgQTurS8eIQAAAABJRU5ErkJggg=='; diff --git a/Examples/UIExplorer/LayoutEventsExample.js b/Examples/UIExplorer/LayoutEventsExample.js index a6b0cea89c0..ab663c0cb1f 100644 --- a/Examples/UIExplorer/LayoutEventsExample.js +++ b/Examples/UIExplorer/LayoutEventsExample.js @@ -15,14 +15,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Image, LayoutAnimation, StyleSheet, Text, View, -} = React; +} = ReactNative; type Layout = { x: number; diff --git a/Examples/UIExplorer/LayoutExample.js b/Examples/UIExplorer/LayoutExample.js index ef9b1c66c81..e60ff89c776 100644 --- a/Examples/UIExplorer/LayoutExample.js +++ b/Examples/UIExplorer/LayoutExample.js @@ -15,12 +15,13 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { StyleSheet, Text, View, -} = React; +} = ReactNative; var UIExplorerBlock = require('./UIExplorerBlock'); var UIExplorerPage = require('./UIExplorerPage'); diff --git a/Examples/UIExplorer/LinkingExample.js b/Examples/UIExplorer/LinkingExample.js index fbf36bfc071..2c1a1cbd188 100644 --- a/Examples/UIExplorer/LinkingExample.js +++ b/Examples/UIExplorer/LinkingExample.js @@ -13,14 +13,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Linking, StyleSheet, Text, TouchableNativeFeedback, View, -} = React; +} = ReactNative; var UIExplorerBlock = require('./UIExplorerBlock'); var OpenURLButton = React.createClass({ diff --git a/Examples/UIExplorer/ListViewExample.js b/Examples/UIExplorer/ListViewExample.js index ef16151ed22..5bd80b2cdde 100644 --- a/Examples/UIExplorer/ListViewExample.js +++ b/Examples/UIExplorer/ListViewExample.js @@ -15,7 +15,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Image, ListView, @@ -24,7 +25,7 @@ var { RecyclerViewBackedScrollView, Text, View, -} = React; +} = ReactNative; var UIExplorerPage = require('./UIExplorerPage'); diff --git a/Examples/UIExplorer/ListViewGridLayoutExample.js b/Examples/UIExplorer/ListViewGridLayoutExample.js index 4d8017335d5..f23db0fa2d1 100644 --- a/Examples/UIExplorer/ListViewGridLayoutExample.js +++ b/Examples/UIExplorer/ListViewGridLayoutExample.js @@ -15,7 +15,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Image, ListView, @@ -23,7 +24,7 @@ var { StyleSheet, Text, View, -} = React; +} = ReactNative; var THUMB_URLS = [ require('./Thumbnails/like.png'), diff --git a/Examples/UIExplorer/ListViewPagingExample.js b/Examples/UIExplorer/ListViewPagingExample.js index a1406c52ff9..103ad958994 100644 --- a/Examples/UIExplorer/ListViewPagingExample.js +++ b/Examples/UIExplorer/ListViewPagingExample.js @@ -16,7 +16,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Image, LayoutAnimation, @@ -25,7 +26,7 @@ var { Text, TouchableOpacity, View, -} = React; +} = ReactNative; var NativeModules = require('NativeModules'); var { diff --git a/Examples/UIExplorer/MapViewExample.js b/Examples/UIExplorer/MapViewExample.js index d11d3006ac4..c236a7781b8 100644 --- a/Examples/UIExplorer/MapViewExample.js +++ b/Examples/UIExplorer/MapViewExample.js @@ -15,17 +15,18 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); +var { PropTypes } = React; var { Image, MapView, - PropTypes, StyleSheet, Text, TextInput, TouchableOpacity, View, -} = React; +} = ReactNative; var regionText = { latitude: '0', diff --git a/Examples/UIExplorer/ModalExample.js b/Examples/UIExplorer/ModalExample.js index a3238c76fee..5d495206ea4 100644 --- a/Examples/UIExplorer/ModalExample.js +++ b/Examples/UIExplorer/ModalExample.js @@ -15,7 +15,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Modal, StyleSheet, @@ -23,7 +24,7 @@ var { Text, TouchableHighlight, View, -} = React; +} = ReactNative; exports.displayName = (undefined: ?string); exports.framework = 'React'; diff --git a/Examples/UIExplorer/NavigationExperimental/LegacyNavigator/BreadcrumbNavSample.js b/Examples/UIExplorer/NavigationExperimental/LegacyNavigator/BreadcrumbNavSample.js index 15251a4cf2f..0b347ecb5e3 100644 --- a/Examples/UIExplorer/NavigationExperimental/LegacyNavigator/BreadcrumbNavSample.js +++ b/Examples/UIExplorer/NavigationExperimental/LegacyNavigator/BreadcrumbNavSample.js @@ -13,7 +13,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { NavigationExperimental, StyleSheet, @@ -21,7 +22,7 @@ var { Text, TouchableHighlight, TouchableOpacity -} = React; +} = ReactNative; var _getRandomRoute = function() { return { diff --git a/Examples/UIExplorer/NavigationExperimental/LegacyNavigator/JumpingNavSample.js b/Examples/UIExplorer/NavigationExperimental/LegacyNavigator/JumpingNavSample.js index aa2b9fd7df6..977543aceb8 100644 --- a/Examples/UIExplorer/NavigationExperimental/LegacyNavigator/JumpingNavSample.js +++ b/Examples/UIExplorer/NavigationExperimental/LegacyNavigator/JumpingNavSample.js @@ -13,7 +13,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { NavigationExperimental, StyleSheet, @@ -22,7 +23,7 @@ var { Text, TouchableHighlight, View, -} = React; +} = ReactNative; var _getRandomRoute = function() { return { diff --git a/Examples/UIExplorer/NavigationExperimental/LegacyNavigator/LegacyNavigatorExample.js b/Examples/UIExplorer/NavigationExperimental/LegacyNavigator/LegacyNavigatorExample.js index e728b7f4658..080a8b60ac6 100644 --- a/Examples/UIExplorer/NavigationExperimental/LegacyNavigator/LegacyNavigatorExample.js +++ b/Examples/UIExplorer/NavigationExperimental/LegacyNavigator/LegacyNavigatorExample.js @@ -20,14 +20,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { NavigationExperimental, ScrollView, StyleSheet, Text, TouchableHighlight, -} = React; +} = ReactNative; var BreadcrumbNavSample = require('./BreadcrumbNavSample'); var NavigationBarSample = require('./NavigationBarSample'); diff --git a/Examples/UIExplorer/NavigationExperimental/LegacyNavigator/NavigationBarSample.js b/Examples/UIExplorer/NavigationExperimental/LegacyNavigator/NavigationBarSample.js index f479b2a83e7..1c7881f6865 100644 --- a/Examples/UIExplorer/NavigationExperimental/LegacyNavigator/NavigationBarSample.js +++ b/Examples/UIExplorer/NavigationExperimental/LegacyNavigator/NavigationBarSample.js @@ -14,7 +14,8 @@ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { NavigationExperimental, ScrollView, @@ -22,7 +23,7 @@ var { Text, TouchableHighlight, TouchableOpacity, -} = React; +} = ReactNative; var Navigator = NavigationExperimental.LegacyNavigator; diff --git a/Examples/UIExplorer/NavigationExperimental/NavigationAnimatedExample.js b/Examples/UIExplorer/NavigationExperimental/NavigationAnimatedExample.js index 3d97380702c..49087e6c36e 100644 --- a/Examples/UIExplorer/NavigationExperimental/NavigationAnimatedExample.js +++ b/Examples/UIExplorer/NavigationExperimental/NavigationAnimatedExample.js @@ -20,14 +20,15 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const { Animated, NavigationExperimental, StyleSheet, ScrollView, -} = React; +} = ReactNative; const NavigationExampleRow = require('./NavigationExampleRow'); diff --git a/Examples/UIExplorer/NavigationExperimental/NavigationBasicExample.js b/Examples/UIExplorer/NavigationExperimental/NavigationBasicExample.js index 447ab2051fb..e75e7731dc2 100644 --- a/Examples/UIExplorer/NavigationExperimental/NavigationBasicExample.js +++ b/Examples/UIExplorer/NavigationExperimental/NavigationBasicExample.js @@ -13,12 +13,13 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const { NavigationExperimental, ScrollView, StyleSheet, -} = React; +} = ReactNative; const NavigationExampleRow = require('./NavigationExampleRow'); const { RootContainer: NavigationRootContainer, diff --git a/Examples/UIExplorer/NavigationExperimental/NavigationCardStackExample.js b/Examples/UIExplorer/NavigationExperimental/NavigationCardStackExample.js index 2ac20280a70..bfb84589f54 100644 --- a/Examples/UIExplorer/NavigationExperimental/NavigationCardStackExample.js +++ b/Examples/UIExplorer/NavigationExperimental/NavigationCardStackExample.js @@ -21,13 +21,14 @@ 'use strict'; const NavigationExampleRow = require('./NavigationExampleRow'); -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const { NavigationExperimental, StyleSheet, ScrollView, -} = React; +} = ReactNative; const { CardStack: NavigationCardStack, diff --git a/Examples/UIExplorer/NavigationExperimental/NavigationCompositionExample.js b/Examples/UIExplorer/NavigationExperimental/NavigationCompositionExample.js index cdf78b17a23..b0bd41fb9cc 100644 --- a/Examples/UIExplorer/NavigationExperimental/NavigationCompositionExample.js +++ b/Examples/UIExplorer/NavigationExperimental/NavigationCompositionExample.js @@ -22,7 +22,8 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const NavigationExampleRow = require('./NavigationExampleRow'); const NavigationExampleTabBar = require('./NavigationExampleTabBar'); @@ -31,7 +32,7 @@ const { ScrollView, StyleSheet, View, -} = React; +} = ReactNative; const { CardStack: NavigationCardStack, diff --git a/Examples/UIExplorer/NavigationExperimental/NavigationExampleRow.js b/Examples/UIExplorer/NavigationExperimental/NavigationExampleRow.js index 4e431e30a72..94a874a9a0b 100644 --- a/Examples/UIExplorer/NavigationExperimental/NavigationExampleRow.js +++ b/Examples/UIExplorer/NavigationExperimental/NavigationExampleRow.js @@ -13,14 +13,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Text, PixelRatio, StyleSheet, View, TouchableHighlight, -} = React; +} = ReactNative; var NavigationExampleRow = React.createClass({ render: function() { diff --git a/Examples/UIExplorer/NavigationExperimental/NavigationExampleTabBar.js b/Examples/UIExplorer/NavigationExperimental/NavigationExampleTabBar.js index 6dbaab095b9..445a8274b7a 100644 --- a/Examples/UIExplorer/NavigationExperimental/NavigationExampleTabBar.js +++ b/Examples/UIExplorer/NavigationExperimental/NavigationExampleTabBar.js @@ -13,14 +13,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { NavigationExperimental, StyleSheet, Text, TouchableOpacity, View, -} = React; +} = ReactNative; const { Container: NavigationContainer, Reducer: NavigationReducer, diff --git a/Examples/UIExplorer/NavigationExperimental/NavigationExperimentalExample.js b/Examples/UIExplorer/NavigationExperimental/NavigationExperimentalExample.js index 0781570da28..3d2d54e5d40 100644 --- a/Examples/UIExplorer/NavigationExperimental/NavigationExperimentalExample.js +++ b/Examples/UIExplorer/NavigationExperimental/NavigationExperimentalExample.js @@ -13,13 +13,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { AsyncStorage, ScrollView, StyleSheet, View, -} = React; +} = ReactNative; var NavigationExampleRow = require('./NavigationExampleRow'); /* diff --git a/Examples/UIExplorer/NavigationExperimental/NavigationTabsExample.js b/Examples/UIExplorer/NavigationExperimental/NavigationTabsExample.js index ae4de59a6da..9ce21f991e8 100644 --- a/Examples/UIExplorer/NavigationExperimental/NavigationTabsExample.js +++ b/Examples/UIExplorer/NavigationExperimental/NavigationTabsExample.js @@ -13,13 +13,14 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const { NavigationExperimental, ScrollView, StyleSheet, View, -} = React; +} = ReactNative; const { Container: NavigationContainer, RootContainer: NavigationRootContainer, diff --git a/Examples/UIExplorer/NavigationExperimental/NavigationTicTacToeExample.js b/Examples/UIExplorer/NavigationExperimental/NavigationTicTacToeExample.js index 9831c1871f0..24e81b85e6e 100644 --- a/Examples/UIExplorer/NavigationExperimental/NavigationTicTacToeExample.js +++ b/Examples/UIExplorer/NavigationExperimental/NavigationTicTacToeExample.js @@ -16,14 +16,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { NavigationExperimental, StyleSheet, Text, TouchableHighlight, View, -} = React; +} = ReactNative; const { Container: NavigationContainer, RootContainer: NavigationRootContainer, diff --git a/Examples/UIExplorer/Navigator/BreadcrumbNavSample.js b/Examples/UIExplorer/Navigator/BreadcrumbNavSample.js index e05a8c39e83..368944125b8 100644 --- a/Examples/UIExplorer/Navigator/BreadcrumbNavSample.js +++ b/Examples/UIExplorer/Navigator/BreadcrumbNavSample.js @@ -13,7 +13,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Navigator, StyleSheet, @@ -21,7 +22,7 @@ var { Text, TouchableHighlight, TouchableOpacity -} = React; +} = ReactNative; var _getRandomRoute = function() { return { diff --git a/Examples/UIExplorer/Navigator/JumpingNavSample.js b/Examples/UIExplorer/Navigator/JumpingNavSample.js index 54fe312c220..4f63f2d477e 100644 --- a/Examples/UIExplorer/Navigator/JumpingNavSample.js +++ b/Examples/UIExplorer/Navigator/JumpingNavSample.js @@ -13,7 +13,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Navigator, StyleSheet, @@ -22,7 +23,7 @@ var { Text, TouchableHighlight, View, -} = React; +} = ReactNative; var _getRandomRoute = function() { return { diff --git a/Examples/UIExplorer/Navigator/NavigationBarSample.js b/Examples/UIExplorer/Navigator/NavigationBarSample.js index ff44f35220f..a0b4461aa75 100644 --- a/Examples/UIExplorer/Navigator/NavigationBarSample.js +++ b/Examples/UIExplorer/Navigator/NavigationBarSample.js @@ -14,7 +14,8 @@ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Navigator, ScrollView, @@ -22,7 +23,7 @@ var { Text, TouchableHighlight, TouchableOpacity, -} = React; +} = ReactNative; class NavButton extends React.Component { render() { diff --git a/Examples/UIExplorer/Navigator/NavigatorExample.js b/Examples/UIExplorer/Navigator/NavigatorExample.js index 7346af4542d..1da8434b759 100644 --- a/Examples/UIExplorer/Navigator/NavigatorExample.js +++ b/Examples/UIExplorer/Navigator/NavigatorExample.js @@ -15,14 +15,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Navigator, ScrollView, StyleSheet, Text, TouchableHighlight, -} = React; +} = ReactNative; var BreadcrumbNavSample = require('./BreadcrumbNavSample'); var NavigationBarSample = require('./NavigationBarSample'); var JumpingNavSample = require('./JumpingNavSample'); diff --git a/Examples/UIExplorer/NavigatorIOSColorsExample.js b/Examples/UIExplorer/NavigatorIOSColorsExample.js index 1735633c9d3..2f527c1c639 100644 --- a/Examples/UIExplorer/NavigatorIOSColorsExample.js +++ b/Examples/UIExplorer/NavigatorIOSColorsExample.js @@ -13,14 +13,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { NavigatorIOS, StatusBar, StyleSheet, Text, View -} = React; +} = ReactNative; var EmptyPage = React.createClass({ diff --git a/Examples/UIExplorer/NavigatorIOSExample.js b/Examples/UIExplorer/NavigatorIOSExample.js index 3c6f19f94df..c5e9895238e 100644 --- a/Examples/UIExplorer/NavigatorIOSExample.js +++ b/Examples/UIExplorer/NavigatorIOSExample.js @@ -15,7 +15,8 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const ViewExample = require('./ViewExample'); const createExamplePage = require('./createExamplePage'); const { @@ -26,7 +27,7 @@ const { Text, TouchableHighlight, View, -} = React; +} = ReactNative; const EmptyPage = React.createClass({ render: function() { diff --git a/Examples/UIExplorer/NetInfoExample.js b/Examples/UIExplorer/NetInfoExample.js index 97af9e1e00b..b07f086bf59 100644 --- a/Examples/UIExplorer/NetInfoExample.js +++ b/Examples/UIExplorer/NetInfoExample.js @@ -15,13 +15,14 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const { NetInfo, Text, View, TouchableWithoutFeedback, -} = React; +} = ReactNative; const ConnectionInfoSubscription = React.createClass({ getInitialState() { diff --git a/Examples/UIExplorer/PanResponderExample.js b/Examples/UIExplorer/PanResponderExample.js index 88ff10fe2d0..00c5ac3192f 100644 --- a/Examples/UIExplorer/PanResponderExample.js +++ b/Examples/UIExplorer/PanResponderExample.js @@ -22,13 +22,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { PanResponder, StyleSheet, View, processColor, -} = React; +} = ReactNative; var CIRCLE_SIZE = 80; diff --git a/Examples/UIExplorer/PickerAndroidExample.js b/Examples/UIExplorer/PickerAndroidExample.js index cdbc649626b..df29e3178da 100644 --- a/Examples/UIExplorer/PickerAndroidExample.js +++ b/Examples/UIExplorer/PickerAndroidExample.js @@ -15,7 +15,8 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const StyleSheet = require('StyleSheet'); const UIExplorerBlock = require('UIExplorerBlock'); const UIExplorerPage = require('UIExplorerPage'); @@ -24,7 +25,7 @@ const { Picker, Text, TouchableWithoutFeedback, -} = React; +} = ReactNative; const Item = Picker.Item; const PickerExample = React.createClass({ diff --git a/Examples/UIExplorer/PickerIOSExample.js b/Examples/UIExplorer/PickerIOSExample.js index 51b8f9f30e7..4550759d099 100644 --- a/Examples/UIExplorer/PickerIOSExample.js +++ b/Examples/UIExplorer/PickerIOSExample.js @@ -15,12 +15,13 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { PickerIOS, Text, View, -} = React; +} = ReactNative; var PickerItemIOS = PickerIOS.Item; diff --git a/Examples/UIExplorer/PointerEventsExample.js b/Examples/UIExplorer/PointerEventsExample.js index 4ca8e9a164d..9e40ed2fac9 100644 --- a/Examples/UIExplorer/PointerEventsExample.js +++ b/Examples/UIExplorer/PointerEventsExample.js @@ -15,12 +15,13 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { StyleSheet, Text, View, -} = React; +} = ReactNative; var ExampleBox = React.createClass({ getInitialState: function() { diff --git a/Examples/UIExplorer/ProgressViewIOSExample.js b/Examples/UIExplorer/ProgressViewIOSExample.js index e294a337081..2cc81601548 100644 --- a/Examples/UIExplorer/ProgressViewIOSExample.js +++ b/Examples/UIExplorer/ProgressViewIOSExample.js @@ -15,12 +15,13 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { ProgressViewIOS, StyleSheet, View, -} = React; +} = ReactNative; var TimerMixin = require('react-timer-mixin'); var ProgressViewExample = React.createClass({ diff --git a/Examples/UIExplorer/PushNotificationIOSExample.js b/Examples/UIExplorer/PushNotificationIOSExample.js index 9fcf8cd1c34..9dd4de4e15b 100644 --- a/Examples/UIExplorer/PushNotificationIOSExample.js +++ b/Examples/UIExplorer/PushNotificationIOSExample.js @@ -15,7 +15,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { AlertIOS, PushNotificationIOS, @@ -23,7 +24,7 @@ var { Text, TouchableHighlight, View, -} = React; +} = ReactNative; var Button = React.createClass({ render: function() { diff --git a/Examples/UIExplorer/RCTRootViewIOSExample.js b/Examples/UIExplorer/RCTRootViewIOSExample.js index 5aa56cf881e..e7942d2f97f 100644 --- a/Examples/UIExplorer/RCTRootViewIOSExample.js +++ b/Examples/UIExplorer/RCTRootViewIOSExample.js @@ -16,12 +16,13 @@ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const { StyleSheet, Text, View, -} = React; +} = ReactNative; const requireNativeComponent = require('requireNativeComponent'); diff --git a/Examples/UIExplorer/RefreshControlExample.js b/Examples/UIExplorer/RefreshControlExample.js index f56c9fed518..b6bca301316 100644 --- a/Examples/UIExplorer/RefreshControlExample.js +++ b/Examples/UIExplorer/RefreshControlExample.js @@ -14,7 +14,8 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const { ScrollView, StyleSheet, @@ -22,7 +23,7 @@ const { Text, TouchableWithoutFeedback, View, -} = React; +} = ReactNative; const styles = StyleSheet.create({ row: { diff --git a/Examples/UIExplorer/RootViewSizeFlexibilityExampleApp.js b/Examples/UIExplorer/RootViewSizeFlexibilityExampleApp.js index 9c48357033f..285404a3854 100644 --- a/Examples/UIExplorer/RootViewSizeFlexibilityExampleApp.js +++ b/Examples/UIExplorer/RootViewSizeFlexibilityExampleApp.js @@ -15,13 +15,14 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const { StyleSheet, Text, TouchableHighlight, View, -} = React; +} = ReactNative; class RootViewSizeFlexibilityExampleApp extends React.Component { state: any; diff --git a/Examples/UIExplorer/ScrollViewExample.js b/Examples/UIExplorer/ScrollViewExample.js index 469c9a63c11..358c8f66a4e 100644 --- a/Examples/UIExplorer/ScrollViewExample.js +++ b/Examples/UIExplorer/ScrollViewExample.js @@ -15,7 +15,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { ScrollView, StyleSheet, @@ -23,7 +24,7 @@ var { TouchableOpacity, View, Image -} = React; +} = ReactNative; exports.displayName = (undefined: ?string); exports.title = ''; diff --git a/Examples/UIExplorer/ScrollViewSimpleExample.js b/Examples/UIExplorer/ScrollViewSimpleExample.js index c9bbe740721..a2bd4462171 100644 --- a/Examples/UIExplorer/ScrollViewSimpleExample.js +++ b/Examples/UIExplorer/ScrollViewSimpleExample.js @@ -15,13 +15,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { ScrollView, StyleSheet, Text, TouchableOpacity -} = React; +} = ReactNative; var NUM_ITEMS = 20; diff --git a/Examples/UIExplorer/SegmentedControlIOSExample.js b/Examples/UIExplorer/SegmentedControlIOSExample.js index a0794d1b7d9..b76fcb4a808 100644 --- a/Examples/UIExplorer/SegmentedControlIOSExample.js +++ b/Examples/UIExplorer/SegmentedControlIOSExample.js @@ -15,13 +15,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { SegmentedControlIOS, Text, View, StyleSheet -} = React; +} = ReactNative; var BasicSegmentedControlExample = React.createClass({ render() { diff --git a/Examples/UIExplorer/SetPropertiesExampleApp.js b/Examples/UIExplorer/SetPropertiesExampleApp.js index f5dc9c8eab3..6d0be80347d 100644 --- a/Examples/UIExplorer/SetPropertiesExampleApp.js +++ b/Examples/UIExplorer/SetPropertiesExampleApp.js @@ -15,11 +15,12 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const { Text, View, -} = React; +} = ReactNative; class SetPropertiesExampleApp extends React.Component { diff --git a/Examples/UIExplorer/SliderExample.js b/Examples/UIExplorer/SliderExample.js index edf44d98021..15fa624647a 100644 --- a/Examples/UIExplorer/SliderExample.js +++ b/Examples/UIExplorer/SliderExample.js @@ -15,13 +15,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Slider, Text, StyleSheet, View, -} = React; +} = ReactNative; var SliderExample = React.createClass({ getDefaultProps() { diff --git a/Examples/UIExplorer/SliderIOSExample.js b/Examples/UIExplorer/SliderIOSExample.js index baee69ae8f0..963b0e75386 100644 --- a/Examples/UIExplorer/SliderIOSExample.js +++ b/Examples/UIExplorer/SliderIOSExample.js @@ -15,13 +15,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { SliderIOS, Text, StyleSheet, View, -} = React; +} = ReactNative; var SliderExample = React.createClass({ getInitialState() { diff --git a/Examples/UIExplorer/SnapshotExample.js b/Examples/UIExplorer/SnapshotExample.js index d843acee80d..72f58ee7e1f 100644 --- a/Examples/UIExplorer/SnapshotExample.js +++ b/Examples/UIExplorer/SnapshotExample.js @@ -15,14 +15,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Image, StyleSheet, Text, UIManager, View, -} = React; +} = ReactNative; var ScreenshotExample = React.createClass({ getInitialState() { diff --git a/Examples/UIExplorer/StatusBarExample.js b/Examples/UIExplorer/StatusBarExample.js index 27acf7e26ba..7026a8f29ae 100644 --- a/Examples/UIExplorer/StatusBarExample.js +++ b/Examples/UIExplorer/StatusBarExample.js @@ -15,14 +15,15 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const { StatusBar, StyleSheet, Text, TouchableHighlight, View, -} = React; +} = ReactNative; exports.framework = 'React'; exports.title = ''; diff --git a/Examples/UIExplorer/StatusBarIOSExample.js b/Examples/UIExplorer/StatusBarIOSExample.js index a7765d8563a..27a00de4993 100644 --- a/Examples/UIExplorer/StatusBarIOSExample.js +++ b/Examples/UIExplorer/StatusBarIOSExample.js @@ -15,14 +15,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { StyleSheet, View, Text, TouchableHighlight, StatusBarIOS, -} = React; +} = ReactNative; exports.framework = 'React'; exports.title = 'StatusBarIOS'; diff --git a/Examples/UIExplorer/SwitchExample.js b/Examples/UIExplorer/SwitchExample.js index 5ab41fe15a2..02851057370 100644 --- a/Examples/UIExplorer/SwitchExample.js +++ b/Examples/UIExplorer/SwitchExample.js @@ -15,12 +15,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { + Platform, Switch, Text, View -} = React; +} = ReactNative; var BasicSwitchExample = React.createClass({ getInitialState() { @@ -144,7 +146,7 @@ var examples = [ } ]; -if (React.Platform.OS === 'ios') { +if (Platform.OS === 'ios') { examples.push({ title: 'Custom colors can be provided', render(): ReactElement { return ; } diff --git a/Examples/UIExplorer/TabBarIOSExample.js b/Examples/UIExplorer/TabBarIOSExample.js index eccc84cbed4..0c5d95de15a 100644 --- a/Examples/UIExplorer/TabBarIOSExample.js +++ b/Examples/UIExplorer/TabBarIOSExample.js @@ -15,13 +15,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { StyleSheet, TabBarIOS, Text, View, -} = React; +} = ReactNative; var base64Icon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABLCAQAAACSR7JhAAADtUlEQVR4Ac3YA2Bj6QLH0XPT1Fzbtm29tW3btm3bfLZtv7e2ObZnms7d8Uw098tuetPzrxv8wiISrtVudrG2JXQZ4VOv+qUfmqCGGl1mqLhoA52oZlb0mrjsnhKpgeUNEs91Z0pd1kvihA3ULGVHiQO2narKSHKkEMulm9VgUyE60s1aWoMQUbpZOWE+kaqs4eLEjdIlZTcFZB0ndc1+lhB1lZrIuk5P2aib1NBpZaL+JaOGIt0ls47SKzLC7CqrlGF6RZ09HGoNy1lYl2aRSWL5GuzqWU1KafRdoRp0iOQEiDzgZPnG6DbldcomadViflnl/cL93tOoVbsOLVM2jylvdWjXolWX1hmfZbGR/wjypDjFLSZIRov09BgYmtUqPQPlQrPapecLgTIy0jMgPKtTeob2zWtrGH3xvjUkPCtNg/tm1rjwrMa+mdUkPd3hWbH0jArPGiU9ufCsNNWFZ40wpwn+62/66R2RUtoso1OB34tnLOcy7YB1fUdc9e0q3yru8PGM773vXsuZ5YIZX+5xmHwHGVvlrGPN6ZSiP1smOsMMde40wKv2VmwPPVXNut4sVpUreZiLBHi0qln/VQeI/LTMYXpsJtFiclUN+5HVZazim+Ky+7sAvxWnvjXrJFneVtLWLyPJu9K3cXLWeOlbMTlrIelbMDlrLenrjEQOtIF+fuI9xRp9ZBFp6+b6WT8RrxEpdK64BuvHgDk+vUy+b5hYk6zfyfs051gRoNO1usU12WWRWL73/MMEy9pMi9qIrR4ZpV16Rrvduxazmy1FSvuFXRkqTnE7m2kdb5U8xGjLw/spRr1uTov4uOgQE+0N/DvFrG/Jt7i/FzwxbA9kDanhf2w+t4V97G8lrT7wc08aA2QNUkuTfW/KimT01wdlfK4yEw030VfT0RtZbzjeMprNq8m8tnSTASrTLti64oBNdpmMQm0eEwvfPwRbUBywG5TzjPCsdwk3IeAXjQblLCoXnDVeoAz6SfJNk5TTzytCNZk/POtTSV40NwOFWzw86wNJRpubpXsn60NJFlHeqlYRbslqZm2jnEZ3qcSKgm0kTli3zZVS7y/iivZTweYXJ26Y+RTbV1zh3hYkgyFGSTKPfRVbRqWWVReaxYeSLarYv1Qqsmh1s95S7G+eEWK0f3jYKTbV6bOwepjfhtafsvUsqrQvrGC8YhmnO9cSCk3yuY984F1vesdHYhWJ5FvASlacshUsajFt2mUM9pqzvKGcyNJW0arTKN1GGGzQlH0tXwLDgQTurS8eIQAAAABJRU5ErkJggg=='; diff --git a/Examples/UIExplorer/TextExample.android.js b/Examples/UIExplorer/TextExample.android.js index 7c0c7868f4c..0d7efa1d5fd 100644 --- a/Examples/UIExplorer/TextExample.android.js +++ b/Examples/UIExplorer/TextExample.android.js @@ -15,13 +15,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Image, StyleSheet, Text, View, -} = React; +} = ReactNative; var UIExplorerBlock = require('./UIExplorerBlock'); var UIExplorerPage = require('./UIExplorerPage'); diff --git a/Examples/UIExplorer/TextExample.ios.js b/Examples/UIExplorer/TextExample.ios.js index 3de37c42349..4e0d8dba0b3 100644 --- a/Examples/UIExplorer/TextExample.ios.js +++ b/Examples/UIExplorer/TextExample.ios.js @@ -15,13 +15,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Image, StyleSheet, Text, View, -} = React; +} = ReactNative; var Entity = React.createClass({ render: function() { diff --git a/Examples/UIExplorer/TextInputExample.android.js b/Examples/UIExplorer/TextInputExample.android.js index 2c8b48d645f..22b1a054db1 100644 --- a/Examples/UIExplorer/TextInputExample.android.js +++ b/Examples/UIExplorer/TextInputExample.android.js @@ -15,13 +15,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Text, TextInput, View, StyleSheet, -} = React; +} = ReactNative; var TextEventsExample = React.createClass({ getInitialState: function() { diff --git a/Examples/UIExplorer/TextInputExample.ios.js b/Examples/UIExplorer/TextInputExample.ios.js index 239197dbacb..8d6627a9048 100644 --- a/Examples/UIExplorer/TextInputExample.ios.js +++ b/Examples/UIExplorer/TextInputExample.ios.js @@ -15,13 +15,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Text, TextInput, View, StyleSheet, -} = React; +} = ReactNative; var WithLabel = React.createClass({ render: function() { diff --git a/Examples/UIExplorer/TimePickerAndroidExample.js b/Examples/UIExplorer/TimePickerAndroidExample.js index 06733fc35c8..60ef949ddf4 100644 --- a/Examples/UIExplorer/TimePickerAndroidExample.js +++ b/Examples/UIExplorer/TimePickerAndroidExample.js @@ -13,13 +13,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { TimePickerAndroid, StyleSheet, Text, TouchableWithoutFeedback, -} = React; +} = ReactNative; var UIExplorerBlock = require('./UIExplorerBlock'); var UIExplorerPage = require('./UIExplorerPage'); diff --git a/Examples/UIExplorer/TimerExample.js b/Examples/UIExplorer/TimerExample.js index 51a8f1af557..b2a39b74988 100644 --- a/Examples/UIExplorer/TimerExample.js +++ b/Examples/UIExplorer/TimerExample.js @@ -15,13 +15,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { AlertIOS, Platform, ToastAndroid, View, -} = React; +} = ReactNative; var TimerMixin = require('react-timer-mixin'); var UIExplorerButton = require('./UIExplorerButton'); diff --git a/Examples/UIExplorer/ToastAndroidExample.android.js b/Examples/UIExplorer/ToastAndroidExample.android.js index 7f9cedf079a..9bb8aaa0b7a 100644 --- a/Examples/UIExplorer/ToastAndroidExample.android.js +++ b/Examples/UIExplorer/ToastAndroidExample.android.js @@ -16,13 +16,14 @@ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { StyleSheet, Text, ToastAndroid, TouchableWithoutFeedback, -} = React; +} = ReactNative; var UIExplorerBlock = require('UIExplorerBlock'); var UIExplorerPage = require('UIExplorerPage'); diff --git a/Examples/UIExplorer/ToolbarAndroidExample.android.js b/Examples/UIExplorer/ToolbarAndroidExample.android.js index 769737a33e9..95decb76681 100644 --- a/Examples/UIExplorer/ToolbarAndroidExample.android.js +++ b/Examples/UIExplorer/ToolbarAndroidExample.android.js @@ -15,12 +15,13 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { StyleSheet, Text, View, -} = React; +} = ReactNative; var UIExplorerBlock = require('./UIExplorerBlock'); var UIExplorerPage = require('./UIExplorerPage'); diff --git a/Examples/UIExplorer/TouchableExample.js b/Examples/UIExplorer/TouchableExample.js index 5b28f2e134d..5e7243c8dee 100644 --- a/Examples/UIExplorer/TouchableExample.js +++ b/Examples/UIExplorer/TouchableExample.js @@ -15,7 +15,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { PixelRatio, Image, @@ -27,7 +28,7 @@ var { Platform, TouchableNativeFeedback, View, -} = React; +} = ReactNative; exports.displayName = (undefined: ?string); exports.description = 'Touchable and onPress examples.'; diff --git a/Examples/UIExplorer/TransformExample.js b/Examples/UIExplorer/TransformExample.js index 01a2813d41c..3ce782b1c62 100644 --- a/Examples/UIExplorer/TransformExample.js +++ b/Examples/UIExplorer/TransformExample.js @@ -14,13 +14,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Animated, StyleSheet, Text, View, -} = React; +} = ReactNative; var Flip = React.createClass({ getInitialState() { diff --git a/Examples/UIExplorer/TransparentHitTestExample.js b/Examples/UIExplorer/TransparentHitTestExample.js index 755582da329..ac943194422 100644 --- a/Examples/UIExplorer/TransparentHitTestExample.js +++ b/Examples/UIExplorer/TransparentHitTestExample.js @@ -11,12 +11,13 @@ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Text, View, TouchableOpacity, -} = React; +} = ReactNative; var TransparentHitTestExample = React.createClass({ render: function() { diff --git a/Examples/UIExplorer/UIExplorerApp.android.js b/Examples/UIExplorer/UIExplorerApp.android.js index c8e451e9cc5..e3f6c349cc4 100644 --- a/Examples/UIExplorer/UIExplorerApp.android.js +++ b/Examples/UIExplorer/UIExplorerApp.android.js @@ -16,7 +16,8 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const { AppRegistry, BackAndroid, @@ -27,7 +28,7 @@ const { ToolbarAndroid, View, StatusBar, -} = React; +} = ReactNative; const { RootContainer: NavigationRootContainer, } = NavigationExperimental; diff --git a/Examples/UIExplorer/UIExplorerApp.ios.js b/Examples/UIExplorer/UIExplorerApp.ios.js index 92c6a1ccf0c..be8366c09a1 100644 --- a/Examples/UIExplorer/UIExplorerApp.ios.js +++ b/Examples/UIExplorer/UIExplorerApp.ios.js @@ -23,7 +23,8 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const UIExplorerList = require('./UIExplorerList.ios'); const UIExplorerExampleList = require('./UIExplorerExampleList'); const UIExplorerNavigationReducer = require('./UIExplorerNavigationReducer'); @@ -36,7 +37,7 @@ const { SnapshotViewIOS, StyleSheet, View, -} = React; +} = ReactNative; const { CardStack: NavigationCardStack, diff --git a/Examples/UIExplorer/UIExplorerButton.js b/Examples/UIExplorer/UIExplorerButton.js index 21f8efc8cf0..ba6c213244f 100644 --- a/Examples/UIExplorer/UIExplorerButton.js +++ b/Examples/UIExplorer/UIExplorerButton.js @@ -15,12 +15,13 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { StyleSheet, Text, TouchableHighlight, -} = React; +} = ReactNative; var UIExplorerButton = React.createClass({ propTypes: { diff --git a/Examples/UIExplorer/UIExplorerExampleList.js b/Examples/UIExplorer/UIExplorerExampleList.js index 4a81314c293..29cef392201 100644 --- a/Examples/UIExplorer/UIExplorerExampleList.js +++ b/Examples/UIExplorer/UIExplorerExampleList.js @@ -15,7 +15,8 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const UIExplorerActions = require('./UIExplorerActions'); const { ListView, @@ -25,7 +26,7 @@ const { TextInput, TouchableHighlight, View, -} = React; +} = ReactNative; const createExamplePage = require('./createExamplePage'); const { Container: NavigationContainer, diff --git a/Examples/UIExplorer/UIExplorerList.android.js b/Examples/UIExplorer/UIExplorerList.android.js index 97f45033898..6e6df6e77f7 100644 --- a/Examples/UIExplorer/UIExplorerList.android.js +++ b/Examples/UIExplorer/UIExplorerList.android.js @@ -15,7 +15,7 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('React'); export type UIExplorerExample = { key: string; diff --git a/Examples/UIExplorer/UIExplorerNavigationReducer.js b/Examples/UIExplorer/UIExplorerNavigationReducer.js index 854e5b36eed..64a4f5f3481 100644 --- a/Examples/UIExplorer/UIExplorerNavigationReducer.js +++ b/Examples/UIExplorer/UIExplorerNavigationReducer.js @@ -15,12 +15,13 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); // $FlowFixMe : This is a platform-forked component, and flow seems to only run on iOS? const UIExplorerList = require('./UIExplorerList'); const { NavigationExperimental, -} = React; +} = ReactNative; const { Reducer: NavigationReducer, } = NavigationExperimental; diff --git a/Examples/UIExplorer/URIActionMap.js b/Examples/UIExplorer/URIActionMap.js index fa2d026ca54..2940e073600 100644 --- a/Examples/UIExplorer/URIActionMap.js +++ b/Examples/UIExplorer/URIActionMap.js @@ -15,14 +15,15 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const UIExplorerActions = require('./UIExplorerActions'); // $FlowFixMe : This is a platform-forked component, and flow seems to only run on iOS? const UIExplorerList = require('./UIExplorerList'); const { Alert, -} = React; +} = ReactNative; function PathActionMap(path: string): ?Object { // Warning! Hacky parsing for example code. Use a library for this! diff --git a/Examples/UIExplorer/VibrationExample.js b/Examples/UIExplorer/VibrationExample.js index 4e2a9f51cff..e4948e54cb5 100644 --- a/Examples/UIExplorer/VibrationExample.js +++ b/Examples/UIExplorer/VibrationExample.js @@ -15,14 +15,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { StyleSheet, View, Text, TouchableHighlight, Vibration, -} = React; +} = ReactNative; exports.framework = 'React'; exports.title = 'Vibration'; diff --git a/Examples/UIExplorer/VibrationIOSExample.js b/Examples/UIExplorer/VibrationIOSExample.js index 3596b084df5..cce819f994e 100644 --- a/Examples/UIExplorer/VibrationIOSExample.js +++ b/Examples/UIExplorer/VibrationIOSExample.js @@ -15,14 +15,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { StyleSheet, View, Text, TouchableHighlight, VibrationIOS -} = React; +} = ReactNative; exports.framework = 'React'; exports.title = 'VibrationIOS'; diff --git a/Examples/UIExplorer/ViewExample.js b/Examples/UIExplorer/ViewExample.js index deed55067e2..4be867b27bc 100644 --- a/Examples/UIExplorer/ViewExample.js +++ b/Examples/UIExplorer/ViewExample.js @@ -16,12 +16,13 @@ 'use strict'; var Platform = require('Platform'); -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { StyleSheet, Text, View, -} = React; +} = ReactNative; var TouchableWithoutFeedback = require('TouchableWithoutFeedback'); var styles = StyleSheet.create({ diff --git a/Examples/UIExplorer/ViewPagerAndroidExample.android.js b/Examples/UIExplorer/ViewPagerAndroidExample.android.js index d2b1464ee9b..e9fc78f4598 100644 --- a/Examples/UIExplorer/ViewPagerAndroidExample.android.js +++ b/Examples/UIExplorer/ViewPagerAndroidExample.android.js @@ -21,7 +21,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Image, StyleSheet, @@ -30,7 +31,7 @@ var { TouchableOpacity, View, ViewPagerAndroid, -} = React; +} = ReactNative; import type { ViewPagerScrollState } from 'ViewPagerAndroid'; diff --git a/Examples/UIExplorer/WebViewExample.js b/Examples/UIExplorer/WebViewExample.js index 1b5f836df60..9c3020ef44e 100644 --- a/Examples/UIExplorer/WebViewExample.js +++ b/Examples/UIExplorer/WebViewExample.js @@ -15,7 +15,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { StyleSheet, Text, @@ -24,7 +25,7 @@ var { TouchableOpacity, View, WebView -} = React; +} = ReactNative; var HEADER = '#3b5998'; var BGWASH = 'rgba(255,255,255,0.8)'; diff --git a/Examples/UIExplorer/XHRExample.android.js b/Examples/UIExplorer/XHRExample.android.js index 55b1a51787c..ad2693d910e 100644 --- a/Examples/UIExplorer/XHRExample.android.js +++ b/Examples/UIExplorer/XHRExample.android.js @@ -15,7 +15,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { ProgressBarAndroid, StyleSheet, @@ -23,7 +24,7 @@ var { TextInput, TouchableHighlight, View, -} = React; +} = ReactNative; var XHRExampleHeaders = require('./XHRExampleHeaders'); var XHRExampleCookies = require('./XHRExampleCookies'); diff --git a/Examples/UIExplorer/XHRExample.ios.js b/Examples/UIExplorer/XHRExample.ios.js index 3045e2f0332..d28244367b4 100644 --- a/Examples/UIExplorer/XHRExample.ios.js +++ b/Examples/UIExplorer/XHRExample.ios.js @@ -15,7 +15,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { AlertIOS, CameraRoll, @@ -27,7 +28,7 @@ var { TextInput, TouchableHighlight, View, -} = React; +} = ReactNative; var XHRExampleHeaders = require('./XHRExampleHeaders'); var XHRExampleFetch = require('./XHRExampleFetch'); diff --git a/Examples/UIExplorer/XHRExampleCookies.js b/Examples/UIExplorer/XHRExampleCookies.js index d4cfad0e5f1..c4e7100842d 100644 --- a/Examples/UIExplorer/XHRExampleCookies.js +++ b/Examples/UIExplorer/XHRExampleCookies.js @@ -15,13 +15,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { StyleSheet, Text, TouchableHighlight, View, -} = React; +} = ReactNative; var RCTNetworking = require('RCTNetworking'); diff --git a/Examples/UIExplorer/XHRExampleFetch.js b/Examples/UIExplorer/XHRExampleFetch.js index 87e8e1bb646..c2d7c0076e2 100644 --- a/Examples/UIExplorer/XHRExampleFetch.js +++ b/Examples/UIExplorer/XHRExampleFetch.js @@ -15,14 +15,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { StyleSheet, Text, TextInput, View, Platform, -} = React; +} = ReactNative; class XHRExampleFetch extends React.Component { diff --git a/Examples/UIExplorer/XHRExampleHeaders.js b/Examples/UIExplorer/XHRExampleHeaders.js index e83c1b071d9..ed75ad0ad2c 100644 --- a/Examples/UIExplorer/XHRExampleHeaders.js +++ b/Examples/UIExplorer/XHRExampleHeaders.js @@ -15,13 +15,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { StyleSheet, Text, TouchableHighlight, View, -} = React; +} = ReactNative; class XHRExampleHeaders extends React.Component { diff --git a/IntegrationTests/AppEventsTest.js b/IntegrationTests/AppEventsTest.js index c003b014d1e..0811788f4cf 100644 --- a/IntegrationTests/AppEventsTest.js +++ b/IntegrationTests/AppEventsTest.js @@ -11,14 +11,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { NativeAppEventEmitter, StyleSheet, Text, View, -} = React; -var { TestModule } = React.NativeModules; +} = ReactNative; +var { TestModule } = ReactNative.NativeModules; var deepDiffer = require('deepDiffer'); diff --git a/IntegrationTests/AsyncStorageTest.js b/IntegrationTests/AsyncStorageTest.js index 06ea818e451..880476629f3 100644 --- a/IntegrationTests/AsyncStorageTest.js +++ b/IntegrationTests/AsyncStorageTest.js @@ -10,13 +10,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { AsyncStorage, Text, View, -} = React; -var { TestModule } = React.NativeModules; +} = ReactNative; +var { TestModule } = ReactNative.NativeModules; var deepDiffer = require('deepDiffer'); diff --git a/IntegrationTests/ImageSnapshotTest.js b/IntegrationTests/ImageSnapshotTest.js index 7724ab5d353..838bd69c3e0 100644 --- a/IntegrationTests/ImageSnapshotTest.js +++ b/IntegrationTests/ImageSnapshotTest.js @@ -10,12 +10,13 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Image, View, -} = React; -var { TestModule } = React.NativeModules; +} = ReactNative; +var { TestModule } = ReactNative.NativeModules; var ImageSnapshotTest = React.createClass({ componentDidMount() { diff --git a/IntegrationTests/IntegrationTestHarnessTest.js b/IntegrationTests/IntegrationTestHarnessTest.js index bfc9c5d88ba..6edefbc324e 100644 --- a/IntegrationTests/IntegrationTestHarnessTest.js +++ b/IntegrationTests/IntegrationTestHarnessTest.js @@ -11,12 +11,13 @@ 'use strict'; var requestAnimationFrame = require('fbjs/lib/requestAnimationFrame'); -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Text, View, -} = React; -var { TestModule } = React.NativeModules; +} = ReactNative; +var { TestModule } = ReactNative.NativeModules; var IntegrationTestHarnessTest = React.createClass({ propTypes: { diff --git a/IntegrationTests/IntegrationTestsApp.js b/IntegrationTests/IntegrationTestsApp.js index 54fca9a4bd4..0812dc0b4c0 100644 --- a/IntegrationTests/IntegrationTestsApp.js +++ b/IntegrationTests/IntegrationTestsApp.js @@ -10,7 +10,8 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { AppRegistry, ScrollView, @@ -18,7 +19,7 @@ var { Text, TouchableOpacity, View, -} = React; +} = ReactNative; // Keep this list in sync with UIExplorerIntegrationTests.m var TESTS = [ diff --git a/IntegrationTests/LayoutEventsTest.js b/IntegrationTests/LayoutEventsTest.js index 2cfe13f9b9d..a7c73ea7add 100644 --- a/IntegrationTests/LayoutEventsTest.js +++ b/IntegrationTests/LayoutEventsTest.js @@ -11,15 +11,16 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { Image, LayoutAnimation, StyleSheet, Text, View, -} = React; -var { TestModule } = React.NativeModules; +} = ReactNative; +var { TestModule } = ReactNative.NativeModules; var deepDiffer = require('deepDiffer'); diff --git a/IntegrationTests/PromiseTest.js b/IntegrationTests/PromiseTest.js index 563655c3d71..a99880fd92c 100644 --- a/IntegrationTests/PromiseTest.js +++ b/IntegrationTests/PromiseTest.js @@ -10,8 +10,10 @@ */ 'use strict'; -var React = require('react-native'); -var { TestModule } = React.NativeModules; +var React = require('react'); +var ReactNative = require('react-native'); +var { View } = ReactNative; +var { TestModule } = ReactNative.NativeModules; var PromiseTest = React.createClass({ shouldResolve: false, @@ -64,7 +66,7 @@ var PromiseTest = React.createClass({ }, render() : ReactElement { - return ; + return ; } }); diff --git a/IntegrationTests/PropertiesUpdateTest.js b/IntegrationTests/PropertiesUpdateTest.js index da563ec94a5..aac7289e1a6 100644 --- a/IntegrationTests/PropertiesUpdateTest.js +++ b/IntegrationTests/PropertiesUpdateTest.js @@ -8,12 +8,13 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { View, -} = React; +} = ReactNative; -var { TestModule } = React.addons; +var { TestModule } = ReactNative.NativeModules; var PropertiesUpdateTest = React.createClass({ diff --git a/IntegrationTests/RCTRootViewIntegrationTestApp.js b/IntegrationTests/RCTRootViewIntegrationTestApp.js index 5a126a60192..a81317d5045 100644 --- a/IntegrationTests/RCTRootViewIntegrationTestApp.js +++ b/IntegrationTests/RCTRootViewIntegrationTestApp.js @@ -12,7 +12,8 @@ require('regenerator/runtime'); -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var { AppRegistry, @@ -21,7 +22,7 @@ var { Text, TouchableOpacity, View, -} = React; +} = ReactNative; /* Keep this list in sync with RCTRootViewIntegrationTests.m */ var TESTS = [ diff --git a/IntegrationTests/ReactContentSizeUpdateTest.js b/IntegrationTests/ReactContentSizeUpdateTest.js index 73e1c5f5d3d..94b31e2f3df 100644 --- a/IntegrationTests/ReactContentSizeUpdateTest.js +++ b/IntegrationTests/ReactContentSizeUpdateTest.js @@ -8,14 +8,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var RCTNativeAppEventEmitter = require('RCTNativeAppEventEmitter'); var Subscribable = require('Subscribable'); var TimerMixin = require('react-timer-mixin'); -var { View } = React; +var { View } = ReactNative; -var { TestModule } = React.addons; +var { TestModule } = ReactNative.NativeModules; var reactViewWidth = 101; var reactViewHeight = 102; diff --git a/IntegrationTests/SimpleSnapshotTest.js b/IntegrationTests/SimpleSnapshotTest.js index 181077acd17..94ce0849416 100644 --- a/IntegrationTests/SimpleSnapshotTest.js +++ b/IntegrationTests/SimpleSnapshotTest.js @@ -10,14 +10,15 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var requestAnimationFrame = require('fbjs/lib/requestAnimationFrame'); var { StyleSheet, View, -} = React; -var { TestModule } = React.NativeModules; +} = ReactNative; +var { TestModule } = ReactNative.NativeModules; var SimpleSnapshotTest = React.createClass({ componentDidMount() { diff --git a/IntegrationTests/SizeFlexibilityUpdateTest.js b/IntegrationTests/SizeFlexibilityUpdateTest.js index ddc016b70ac..4404bb16ba5 100644 --- a/IntegrationTests/SizeFlexibilityUpdateTest.js +++ b/IntegrationTests/SizeFlexibilityUpdateTest.js @@ -8,12 +8,13 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var RCTNativeAppEventEmitter = require('RCTNativeAppEventEmitter'); var Subscribable = require('Subscribable'); -var { View } = React; +var { View } = ReactNative; -var { TestModule } = React.addons; +var { TestModule } = ReactNative.NativeModules; var reactViewWidth = 111; var reactViewHeight = 222; diff --git a/IntegrationTests/TimersTest.js b/IntegrationTests/TimersTest.js index 56fa9235ccb..c3be70be30d 100644 --- a/IntegrationTests/TimersTest.js +++ b/IntegrationTests/TimersTest.js @@ -10,15 +10,16 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var TimerMixin = require('react-timer-mixin'); var { StyleSheet, Text, View, -} = React; -var { TestModule } = React.NativeModules; +} = ReactNative; +var { TestModule } = ReactNative.NativeModules; var TimersTest = React.createClass({ mixins: [TimerMixin], diff --git a/Libraries/CustomComponents/NavigationExperimental/NavigationCard.js b/Libraries/CustomComponents/NavigationExperimental/NavigationCard.js index b01c3f03462..a1a618a3a27 100644 --- a/Libraries/CustomComponents/NavigationExperimental/NavigationCard.js +++ b/Libraries/CustomComponents/NavigationExperimental/NavigationCard.js @@ -39,7 +39,7 @@ const NavigationContainer = require('NavigationContainer'); const NavigationPagerPanResponder = require('NavigationPagerPanResponder'); const NavigationPagerStyleInterpolator = require('NavigationPagerStyleInterpolator'); const NavigationPropTypes = require('NavigationPropTypes'); -const React = require('react-native'); +const React = require('React'); const ReactComponentWithPureRenderMixin = require('ReactComponentWithPureRenderMixin'); const StyleSheet = require('StyleSheet'); const View = require('View'); diff --git a/Libraries/CustomComponents/NavigationExperimental/NavigationHeader.js b/Libraries/CustomComponents/NavigationExperimental/NavigationHeader.js index 114008d3701..064986f9189 100644 --- a/Libraries/CustomComponents/NavigationExperimental/NavigationHeader.js +++ b/Libraries/CustomComponents/NavigationExperimental/NavigationHeader.js @@ -32,7 +32,8 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('React'); +const ReactNative = require('react-native'); const NavigationContainer = require('NavigationContainer'); const NavigationHeaderTitle = require('NavigationHeaderTitle'); const NavigationHeaderBackButton = require('NavigationHeaderBackButton'); @@ -45,7 +46,7 @@ const { Platform, StyleSheet, View, -} = React; +} = ReactNative; import type { NavigationSceneRenderer, diff --git a/Libraries/CustomComponents/NavigationExperimental/NavigationHeaderBackButton.js b/Libraries/CustomComponents/NavigationExperimental/NavigationHeaderBackButton.js index 4cd4a867676..f72ecda84b2 100644 --- a/Libraries/CustomComponents/NavigationExperimental/NavigationHeaderBackButton.js +++ b/Libraries/CustomComponents/NavigationExperimental/NavigationHeaderBackButton.js @@ -16,7 +16,8 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const NavigationContainer = require('NavigationContainer'); const NavigationRootContainer = require('NavigationRootContainer'); @@ -25,7 +26,7 @@ const { Platform, StyleSheet, TouchableOpacity, -} = React; +} = ReactNative; type Props = { onNavigate: Function diff --git a/Libraries/CustomComponents/NavigationExperimental/NavigationHeaderTitle.js b/Libraries/CustomComponents/NavigationExperimental/NavigationHeaderTitle.js index 94fd4c00a8d..282f1df9c8e 100644 --- a/Libraries/CustomComponents/NavigationExperimental/NavigationHeaderTitle.js +++ b/Libraries/CustomComponents/NavigationExperimental/NavigationHeaderTitle.js @@ -27,14 +27,15 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const { Platform, StyleSheet, View, Text, -} = React; +} = ReactNative; type Props = { children: ReactElement; diff --git a/Libraries/CustomComponents/NavigationExperimental/NavigationLegacyNavigator.js b/Libraries/CustomComponents/NavigationExperimental/NavigationLegacyNavigator.js index 1642f526d80..ae347dc4b98 100644 --- a/Libraries/CustomComponents/NavigationExperimental/NavigationLegacyNavigator.js +++ b/Libraries/CustomComponents/NavigationExperimental/NavigationLegacyNavigator.js @@ -45,7 +45,7 @@ const NavigationPagerStyleInterpolator = require('NavigationPagerStyleInterpolat const NavigatorBreadcrumbNavigationBar = require('NavigatorBreadcrumbNavigationBar'); const NavigatorNavigationBar = require('NavigatorNavigationBar'); const NavigatorSceneConfigs = require('NavigatorSceneConfigs'); -const React = require('react-native'); +const React = require('React'); const ReactComponentWithPureRenderMixin = require('ReactComponentWithPureRenderMixin'); import type { diff --git a/Libraries/Experimental/IncrementalExample.js b/Libraries/Experimental/IncrementalExample.js index 1c1e107cc5b..1fb3cebc2dc 100644 --- a/Libraries/Experimental/IncrementalExample.js +++ b/Libraries/Experimental/IncrementalExample.js @@ -16,7 +16,8 @@ */ 'use strict'; -const React = require('react-native'); +const React = require('react'); +const ReactNative = require('react-native'); const { InteractionManager, ScrollView, @@ -24,7 +25,7 @@ const { Text, TouchableOpacity, View, -} = React; +} = ReactNative; const Incremental = require('Incremental'); const IncrementalGroup = require('IncrementalGroup'); diff --git a/Libraries/NavigationExperimental/NavigationAnimatedView.js b/Libraries/NavigationExperimental/NavigationAnimatedView.js index e2635e26712..0ef8fb8471b 100644 --- a/Libraries/NavigationExperimental/NavigationAnimatedView.js +++ b/Libraries/NavigationExperimental/NavigationAnimatedView.js @@ -15,7 +15,7 @@ const Animated = require('Animated'); const NavigationContainer = require('NavigationContainer'); const NavigationPropTypes = require('NavigationPropTypes'); const NavigationScenesReducer = require('NavigationScenesReducer'); -const React = require('react-native'); +const React = require('React'); const StyleSheet = require('StyleSheet'); const View = require('View'); diff --git a/Libraries/NavigationExperimental/NavigationPropTypes.js b/Libraries/NavigationExperimental/NavigationPropTypes.js index ef163d8a17f..3355bec1f3f 100644 --- a/Libraries/NavigationExperimental/NavigationPropTypes.js +++ b/Libraries/NavigationExperimental/NavigationPropTypes.js @@ -23,7 +23,7 @@ import type { */ const Animated = require('Animated'); -const React = require('react-native'); +const React = require('React'); const {PropTypes} = React; diff --git a/Libraries/NavigationExperimental/NavigationView.js b/Libraries/NavigationExperimental/NavigationView.js index c79466d7a8f..91fea56cf09 100644 --- a/Libraries/NavigationExperimental/NavigationView.js +++ b/Libraries/NavigationExperimental/NavigationView.js @@ -13,7 +13,7 @@ const Animated = require('Animated'); const NavigationContainer = require('NavigationContainer'); -const React = require('react-native'); +const React = require('React'); const StyleSheet = require('StyleSheet'); const View = require('View'); const NavigationScenesReducer = require('NavigationScenesReducer'); diff --git a/Libraries/Text/TextUpdateTest.js b/Libraries/Text/TextUpdateTest.js index c4218f73d5a..5a4e7e01cb6 100644 --- a/Libraries/Text/TextUpdateTest.js +++ b/Libraries/Text/TextUpdateTest.js @@ -16,13 +16,14 @@ */ 'use strict'; -var React = require('react-native'); +var React = require('react'); +var ReactNative = require('react-native'); var TimerMixin = require('react-timer-mixin'); var { NativeModules, StyleSheet, Text, -} = React; +} = ReactNative; var TestManager = NativeModules.TestManager || NativeModules.SnapshotTestManager;