A framework for building native apps with React. http://facebook.github.io/react-native/
Go to file
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
Examples Add SegmentedControlIOS 2015-04-29 08:08:45 -08:00
IntegrationTests MapView to support MKPointAnnotation using new attribute annotate in Map... 2015-04-14 18:03:37 -08:00
Libraries Add SegmentedControlIOS 2015-04-29 08:08:45 -08:00
React Add SegmentedControlIOS 2015-04-29 08:08:45 -08:00
jestSupport [ReactNative] Expanded license on js files 2015-03-23 13:17:54 -08:00
lint [ReactNative] Expanded license on js files 2015-03-23 13:17:54 -08:00
packager JS: Use Object.defineProperty for Array Polyfills 2015-04-28 15:56:40 -08:00
.eslintignore [react-packager][streamline oss] Move open sourced JS source to react-native-github 2015-02-19 21:25:11 -08:00
.eslintrc [ReactNative] Turn of lint warning for constant conditions 2015-04-03 10:04:35 -08:00
.flowconfig [Flow] Add versions to fbobjc .flowconfigs 2015-04-24 22:49:51 -08:00
React.podspec [ReactNative] rename Animation to AnimationExperimental with warning docs 2015-04-04 11:20:45 -08:00
linter.js [ReactNative] Expanded license on js files 2015-03-23 13:17:54 -08:00
package.json [react-native] Update react-tools to 0.13.2* 2015-04-24 10:58:28 -08:00
runXcodeTests.sh [React Native] Sync from github 2015-03-27 22:09:11 -08:00