You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
This PR is based on #13342 by pvinis and fixes#14442.
As suggested in the discussion on the PR mentioned above, I moved the code from `React/Views/RCTPickerManager.m` to the `initWithFrame` function in `React/Views/RCTPicker.m` and verified that it still fixes the problem.
Before the change in this PR the selection indicator lines are missing when the Picker is initially added to the View and only appear after changing to a different Tab and back. This happens both in the Simulator and my real device (iPhone 6S on iOS 11.3).

After the change, the indicator lines always appear. I did not notice any side effects of this change when playing around with the Picker in different configurations.

#13342 also fixes this issue but appears to be inactive.
[IOS] [BUGFIX] [PickerIOS] - Fixed missing selection indicator lines
Pull Request resolved: #18885
Differential Revision: D8945483
Pulled By: hramos
fbshipit-source-id: 2b6c6f42559691530b062503feb24bc305f4a8af
[selfselectRow:0inComponent:0animated:YES]; // Workaround for missing selection indicator lines (see https://stackoverflow.com/questions/39564660/uipickerview-selection-indicator-not-visible-in-ios10)
0 commit comments