Skip to content

Commit

Permalink
fix missing selection indicator lines in PickerIOS
Browse files Browse the repository at this point in the history
  • Loading branch information
VSchlattinger committed Apr 16, 2018
1 parent 8621d4b commit 8bc654a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions React/Views/RCTPicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ - (instancetype)initWithFrame:(CGRect)frame
_selectedIndex = NSNotFound;
_textAlign = NSTextAlignmentCenter;
self.delegate = self;
[self selectRow:0 inComponent:0 animated:YES]; // Workaround for missing selection indicator lines (see https://stackoverflow.com/questions/39564660/uipickerview-selection-indicator-not-visible-in-ios10)
}
return self;
}
Expand Down

0 comments on commit 8bc654a

Please sign in to comment.