From bb07817023915b119152f2a436e7270d26e89851 Mon Sep 17 00:00:00 2001 From: Jarrod Mosen Date: Wed, 8 Jul 2015 12:38:14 -0700 Subject: [PATCH] Update SegmentedControlIOSExample.js Summary: `event.nativeEvent` now uses `selectedSegmentIndex`, not `selectedIndex`. Closes https://github.com/facebook/react-native/pull/1872 Github Author: Jarrod Mosen --- Examples/UIExplorer/SegmentedControlIOSExample.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/UIExplorer/SegmentedControlIOSExample.js b/Examples/UIExplorer/SegmentedControlIOSExample.js index 119196d8f..a0794d1b7 100644 --- a/Examples/UIExplorer/SegmentedControlIOSExample.js +++ b/Examples/UIExplorer/SegmentedControlIOSExample.js @@ -118,7 +118,7 @@ var EventSegmentedControlExample = React.createClass({ _onChange(event) { this.setState({ - selectedIndex: event.nativeEvent.selectedIndex, + selectedIndex: event.nativeEvent.selectedSegmentIndex, }); },