Skip to content

Commit 8bc654a

Browse files
committed
fix missing selection indicator lines in PickerIOS
1 parent 8621d4b commit 8bc654a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

React/Views/RCTPicker.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ - (instancetype)initWithFrame:(CGRect)frame
2323
_selectedIndex = NSNotFound;
2424
_textAlign = NSTextAlignmentCenter;
2525
self.delegate = self;
26+
[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)
2627
}
2728
return self;
2829
}

0 commit comments

Comments
 (0)