react-native/Libraries/Components
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
..
ActivityIndicatorIOS Improved RCTActivityIndicatorView and fixed some flow errors 2015-04-26 02:17:13 -08:00
DatePicker [ReactNative] use requireNativeComponent to clean up a bunch of boilerplate 2015-04-21 21:06:48 -08:00
MapView [ReactNative] use requireNativeComponent to clean up a bunch of boilerplate 2015-04-21 21:06:48 -08:00
Navigation NavigatorIOS custom nav bar colors 2015-04-23 06:32:35 -08:00
ScrollView [ReactNative] cleanup some requireNativeComponent cruft 2015-04-17 15:45:12 -08:00
SegmentedControlIOS Add SegmentedControlIOS 2015-04-29 08:08:45 -08:00
SliderIOS Add minimumTrackTintColor and maximumTrackTintColor to SliderIOS 2015-04-23 05:57:15 -08:00
StatusBar [ReactNative] Expanded license on js files 2015-03-23 13:17:54 -08:00
SwitchIOS [ReactNative] use requireNativeComponent to clean up a bunch of boilerplate 2015-04-21 21:06:48 -08:00
TabBarIOS [Flow] Properly fix new errors as of Flow v0.10. 2015-04-27 14:56:21 -08:00
TextInput Added placeholderTextColor property for TextInput class 2015-04-27 10:43:10 -08:00
Touchable [ReactNative] fixup AnimationExperimental a bit 2015-04-08 14:09:32 -08:00
UnimplementedViews [ReactNative] introduce requireNativeComponent 2015-04-16 17:12:12 -08:00
View [react-native] Fix capitalization of "REact" 2015-04-27 13:52:57 -08:00
WebView [react_native] JS files from D2017699: Expose JavaScriptEnabled property for WebView component on android. 2015-04-24 11:53:35 -08:00
ScrollResponder.js [madman] prevent pulling the content down inconsistently when the keyboard shows up 2015-04-03 11:09:20 -08:00
StaticRenderer.js flowified Libraries from Avik 2015-03-25 12:44:28 -08:00
Subscribable.js [ReactNative] Revert high-level Subscribable 2015-04-06 21:58:47 -08:00