mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-11 09:11:14 +08:00
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:
@@ -118,7 +118,7 @@ var EventSegmentedControlExample = React.createClass({
|
||||
|
||||
_onChange(event) {
|
||||
this.setState({
|
||||
selectedIndex: event.nativeEvent.selectedIndex,
|
||||
selectedIndex: event.nativeEvent.selectedSegmentIndex,
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user