react-native/Examples/UIExplorer
Clay Allsopp 11f204748d Add SegmentedControlIOS
Summary:
Fixes #534:

![screen shot 2015-03-31 at 7 52 10 pm](https://cloud.githubusercontent.com/assets/153704/6934038/742ddd34-d7e3-11e4-8f55-3eb7d9d3f1cd.png)

```jsx
<SegmentedControlIOS
  tintColor="#ff0000"
  values={['One', 'Two', 'Three', 'Four']}
  selectedtIndex={0}
  momentary={false}
  enabled={true}
  onValueChange={ (value) => console.log(value) } />
```

This only supports string-based segments, not images. Also doesn't support full customization (no separator images etc); I figure this is a good MVP to lock-down a basic API

I also included a snapshot test case, but the images keep coming out funky. When I look at the sim, I see that the text labels show up for the selected segment, but the snapshot keeps coming out with no text on those segments. I tried forcing a delay, but same result. Is that explainable?

Obviously happy to change anything about the API, code-style nitpicks, etc
Closes https://github.com/facebook/react-native/pull/564
Github Author: Clay Allsopp <clay.allsopp@gmail.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-04-29 08:08:45 -08:00
..
Navigator NavigatorIOS custom nav bar colors 2015-04-23 06:32:35 -08:00
UIExplorer Fixed reachability 2015-04-20 08:33:56 -08:00
UIExplorer.xcodeproj [React Native] RCT_EXPORT lvl.2 2015-04-08 08:34:10 -08:00
UIExplorerTests Implemented thread control for exported methods 2015-04-18 11:13:39 -08:00
ActionSheetIOSExample.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00
ActivityIndicatorIOSExample.js [Flow] Properly fix new errors as of Flow v0.10. 2015-04-27 14:56:21 -08:00
AdSupportIOSExample.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00
AlertIOSExample.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00
AppStateIOSExample.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00
AsyncStorageExample.js Add promise support to AsyncStorage 2015-04-07 01:45:26 -08:00
BorderExample.js [React Native] Update RCTView border implementation 2015-04-27 04:10:43 -08:00
CameraRollExample.ios.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00
CameraRollView.ios.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00
DatePickerIOSExample.js [ReactNative] Normalize name for examples 2015-03-31 20:49:24 -08:00
GeolocationExample.js [ReactNative] geolocation method docs 2015-04-24 16:26:28 -08:00
ImageCapInsetsExample.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00
ImageExample.js [ReactNative] verifyPropTypes against native exports 2015-04-16 18:15:36 -08:00
ImageMocks.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00
LayoutExample.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00
ListViewExample.js [ReactNative] Normalize name for examples 2015-03-31 20:49:24 -08:00
ListViewPagingExample.js [ReactNative] Normalize name for examples 2015-03-31 20:49:24 -08:00
MapViewExample.js MapView to support MKPointAnnotation using new attribute annotate in Map... 2015-04-14 18:03:37 -08:00
NavigatorIOSColorsExample.js NavigatorIOS custom nav bar colors 2015-04-23 06:32:35 -08:00
NavigatorIOSExample.js [UIExplorer] Fixed 'Push View Example' in NavigatorIOS example 2015-04-03 09:54:59 -08:00
NetInfoExample.js Fix Typo 2015-04-21 16:41:34 -08:00
PanResponderExample.js [ReactNative] Sort UIExplorer examples 2015-04-13 04:34:23 -08:00
PickerIOSExample.js [ReactNative] Normalize name for examples 2015-03-31 20:49:24 -08:00
PointerEventsExample.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00
PushNotificationIOSExample.js [ReactNative] Fix doc page for PushNotificationIOS 2015-04-01 13:19:42 -08:00
ScrollViewExample.js Renamed throttleScrollCallbackMS to scrollEventThrottle 2015-03-30 04:56:59 -08:00
SegmentedControlIOSExample.js Add SegmentedControlIOS 2015-04-29 08:08:45 -08:00
SliderIOSExample.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00
StatusBarIOSExample.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00
SwitchIOSExample.js [ReactNative] Normalize name for examples 2015-03-31 20:49:24 -08:00
TabBarIOSExample.js [ReactNative] Cleanup TabBar and its example 2015-04-02 13:51:59 -08:00
TextExample.ios.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00
TextInputExample.js Add support for multiline TextInput via UITextView 2015-04-29 01:33:58 -08:00
TimerExample.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00
TouchableExample.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00
UIExplorerApp.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00
UIExplorerBlock.js [React Native] Update RCTView border implementation 2015-04-27 04:10:43 -08:00
UIExplorerList.js Add SegmentedControlIOS 2015-04-29 08:08:45 -08:00
UIExplorerPage.js [catalyst] fix typo 2015-03-31 14:57:45 -08:00
UIExplorerTitle.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00
VibrationIOSExample.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00
ViewExample.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00
WebViewExample.js [react_native] JS files from D2017699: Expose JavaScriptEnabled property for WebView component on android. 2015-04-24 11:53:35 -08:00
createExamplePage.js [React Native] Sync from github 2015-03-27 22:09:11 -08:00