react-native/Libraries
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
..
ActionSheetIOS [ReactNative] Fix analyze errors on oss 2015-04-24 08:28:35 -08:00
AdSupport [ReactNative] Fix analyze errors on oss 2015-04-24 08:28:35 -08:00
Animation Add Linear easing to AnimationUtils 2015-04-23 06:03:22 -08:00
AppRegistry [ReactNative] Back out D2014163 entirely 2015-04-23 12:02:47 -08:00
AppStateIOS [ReactNative] Document AppStateIOS 2015-03-25 14:24:41 -08:00
BatchedBridge [ReactNative] parse localized JSON files in JS, not in ObjC 2015-04-28 09:52:35 -08:00
CameraRoll flowify some Libraries 2015-03-25 11:09:54 -08:00
Components Add SegmentedControlIOS 2015-04-29 08:08:45 -08:00
CustomComponents [react_native] JS files from D2027859: [react_native] Fix ToTheLeft wizard transitions 2015-04-29 04:49:43 -08:00
Device flowify some Libraries 2015-03-25 11:09:54 -08:00
Fetch [ReactNative] Expanded license on js files 2015-03-23 13:17:54 -08:00
Geolocation [ReactNative] Fix struct args on exported methods 2015-04-27 04:01:37 -08:00
Image [react-native] Fix capitalization of "REact" 2015-04-27 13:52:57 -08:00
Interaction React Native: Fix InteractionManager Race Condition 2015-04-13 11:14:11 -08:00
JavaScriptAppEngine [React Native] Actually bring back console.error redboxes with disable flag 2015-04-28 14:53:36 -08:00
LinkingIOS Bump .buckversion to 6cdb82cb7493a86c39d0f0dc3c102d0f470f55de. 2015-04-23 08:24:08 -08:00
Network Refactored RKSounds, moved it into it's own library, and fixed tests 2015-04-28 10:53:53 -08:00
Picker [ReactNative] Expanded license on js files 2015-03-23 13:17:54 -08:00
PushNotificationIOS [ReactNative] Fix analyze errors on oss 2015-04-24 08:28:35 -08:00
RCTTest [ReactNative] Fix analyze errors on oss 2015-04-24 08:28:35 -08:00
RCTWebSocketDebugger [ReactNative] Fix analyze errors on oss 2015-04-24 08:28:35 -08:00
RKBackendNode Flowify a bunch of Libraries 2015-03-24 18:22:05 -08:00
ReactIOS [React Native] Actually bring back console.error redboxes with disable flag 2015-04-28 14:53:36 -08:00
Storage Add promise support to AsyncStorage 2015-04-07 01:45:26 -08:00
StyleSheet Implement transform styles, redux 2015-04-23 10:17:39 -08:00
Text Add support for multiline TextInput via UITextView 2015-04-29 01:33:58 -08:00
Utilities [React Native] Bring back console.error redboxes with disable flag 2015-04-24 17:54:16 -08:00
Vibration [ReactNative] Fix analyze errors on oss 2015-04-24 08:28:35 -08:00
react-native Add SegmentedControlIOS 2015-04-29 08:08:45 -08:00
vendor [ReactNative] Fix fatal from long press 2015-04-27 20:46:23 -08:00
Promise.js Replace ES6Promise with Promise 2015-04-15 06:06:29 -08:00