From 0f5a3c16e4ca4f554877b32673aff9d06f0ce2fd Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Wed, 18 Mar 2015 10:06:01 -0700 Subject: [PATCH] [ReactNative] Sort React Native exports into two groups, Components and ... Summary: ...APIs This maps the way the docs are structured, this is easier to figure out when the docs are stale Closes https://github.com/facebook/react-native/pull/161 Github Author: Christopher Chedeau Test Plan: Imported from GitHub, without a `Test Plan:` line. --- Libraries/react-native/react-native.js | 42 +++++++++++++++----------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/Libraries/react-native/react-native.js b/Libraries/react-native/react-native.js index 80d926982..43dda595b 100644 --- a/Libraries/react-native/react-native.js +++ b/Libraries/react-native/react-native.js @@ -7,7 +7,30 @@ var ReactNative = { ...require('React'), + + // Components ActivityIndicatorIOS: require('ActivityIndicatorIOS'), + DatePickerIOS: require('DatePickerIOS'), + ExpandingText: require('ExpandingText'), + Image: require('Image'), + ListView: require('ListView'), + ListViewDataSource: require('ListViewDataSource'), + MapView: require('MapView'), + NavigatorIOS: require('NavigatorIOS'), + PickerIOS: require('PickerIOS'), + ScrollView: require('ScrollView'), + SliderIOS: require('SliderIOS'), + SwitchIOS: require('SwitchIOS'), + TabBarIOS: require('TabBarIOS'), + Text: require('Text'), + TextInput: require('TextInput'), + TouchableHighlight: require('TouchableHighlight'), + TouchableOpacity: require('TouchableOpacity'), + TouchableWithoutFeedback: require('TouchableWithoutFeedback'), + View: require('View'), + WebView: require('WebView'), + + // APIs AlertIOS: require('AlertIOS'), Animation: require('Animation'), AppRegistry: require('AppRegistry'), @@ -15,32 +38,15 @@ var ReactNative = { AppStateIOS: require('AppStateIOS'), AsyncStorage: require('AsyncStorage'), CameraRoll: require('CameraRoll'), - DatePickerIOS: require('DatePickerIOS'), - ExpandingText: require('ExpandingText'), - Image: require('Image'), InteractionManager: require('InteractionManager'), LayoutAnimation: require('LayoutAnimation'), - ListView: require('ListView'), - ListViewDataSource: require('ListViewDataSource'), - MapView: require('MapView'), - NavigatorIOS: require('NavigatorIOS'), NetInfo: require('NetInfo'), - PickerIOS: require('PickerIOS'), PixelRatio: require('PixelRatio'), - ScrollView: require('ScrollView'), - SliderIOS: require('SliderIOS'), StatusBarIOS: require('StatusBarIOS'), StyleSheet: require('StyleSheet'), - SwitchIOS: require('SwitchIOS'), - Text: require('Text'), - TextInput: require('TextInput'), TimerMixin: require('TimerMixin'), - TouchableHighlight: require('TouchableHighlight'), - TouchableOpacity: require('TouchableOpacity'), - TouchableWithoutFeedback: require('TouchableWithoutFeedback'), VibrationIOS: require('VibrationIOS'), - View: require('View'), - WebView: require('WebView'), + invariant: require('invariant'), ix: require('ix'), };