Update SegmentedControlIOSExample.js
Summary: `event.nativeEvent` now uses `selectedSegmentIndex`, not `selectedIndex`. Closes https://github.com/facebook/react-native/pull/1872 Github Author: Jarrod Mosen <jarrod.mosen@me.com>
This commit is contained in:
parent
b5c1cd7918
commit
bb07817023
|
@ -118,7 +118,7 @@ var EventSegmentedControlExample = React.createClass({
|
|||
|
||||
_onChange(event) {
|
||||
this.setState({
|
||||
selectedIndex: event.nativeEvent.selectedIndex,
|
||||
selectedIndex: event.nativeEvent.selectedSegmentIndex,
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue