Skip to content

Commit

Permalink
Fixed segmented control
Browse files Browse the repository at this point in the history
Reviewed By: @javache

Differential Revision: D2428947
  • Loading branch information
nicklockwood authored and facebook-github-bot-7 committed Sep 10, 2015
1 parent 493cb35 commit 19e421a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions React/Views/RCTSegmentedControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ - (void)setSelectedIndex:(NSInteger)selectedIndex

- (void)didChange
{
_selectedIndex = self.selectedSegmentIndex;
if (_onChange) {
_onChange(@{
@"value": [self titleForSegmentAtIndex:_selectedIndex],
Expand Down

0 comments on commit 19e421a

Please sign in to comment.