react-native/React
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
..
Base Add support for multiline TextInput via UITextView 2015-04-29 01:33:58 -08:00
Executors [ReactNative] Fix bridge event dedupe 2015-04-28 07:58:35 -08:00
Layout [ReactNative] Fix analyze errors on oss 2015-04-24 08:28:35 -08:00
Modules [react-native] Fix capitalization of "REact" 2015-04-27 13:52:57 -08:00
React.xcodeproj Add SegmentedControlIOS 2015-04-29 08:08:45 -08:00
Views Add SegmentedControlIOS 2015-04-29 08:08:45 -08:00