react-native/React/Views
Valentin Schlattinger e592d6f8c7 fix missing selection indicator lines (#18885)
Summary:
This PR is based on https://github.com/facebook/react-native/pull/13342 by pvinis and fixes https://github.com/facebook/react-native/issues/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).

![beforechange](https://user-images.githubusercontent.com/7568362/38824104-7b294cae-41a8-11e8-8609-7a647ab3adb8.png)

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.

![afterchange](https://user-images.githubusercontent.com/7568362/38824109-82a5b382-41a8-11e8-8af3-ca07c8b2c30e.png)

https://github.com/facebook/react-native/pull/13342 also fixes this issue but appears to be inactive.

[IOS] [BUGFIX] [PickerIOS] - Fixed missing selection indicator lines
Pull Request resolved: https://github.com/facebook/react-native/pull/18885

Differential Revision: D8945483

Pulled By: hramos

fbshipit-source-id: 2b6c6f42559691530b062503feb24bc305f4a8af
2018-07-20 19:01:32 -07:00
..
SafeAreaView Update license headers for MIT license 2018-02-16 18:31:53 -08:00
ScrollView Fixed build eats 2018-06-20 10:04:22 -07:00
RCTActivityIndicatorView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTActivityIndicatorView.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTActivityIndicatorViewManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTActivityIndicatorViewManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTAnimationType.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTAutoInsetsProtocol.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBorderDrawing.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBorderDrawing.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBorderStyle.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTComponent.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTComponentData.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTComponentData.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTConvert+CoreLocation.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTConvert+CoreLocation.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTConvert+Transform.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTConvert+Transform.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTDatePicker.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTDatePicker.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTDatePickerManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTDatePickerManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTFont.h Fix for issue #19086 RCTHasFontHandlerSet(); This function definition… 2018-05-01 19:32:07 -07:00
RCTFont.mm iOS OSS: deployment target 8.0 => 9.0 2018-05-22 01:16:45 -07:00
RCTLayout.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTLayout.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTMaskedView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTMaskedView.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTMaskedViewManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTMaskedViewManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModalHostView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModalHostView.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModalHostViewController.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModalHostViewController.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModalHostViewManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModalHostViewManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModalManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModalManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTNavItem.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTNavItem.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTNavItemManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTNavItemManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTNavigator.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTNavigator.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTNavigatorManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTNavigatorManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTPicker.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTPicker.m fix missing selection indicator lines (#18885) 2018-07-20 19:01:32 -07:00
RCTPickerManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTPickerManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTPointerEvents.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTProgressViewManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTProgressViewManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTRefreshControl.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTRefreshControl.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTRefreshControlManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTRefreshControlManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTRootShadowView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTRootShadowView.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSegmentedControl.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSegmentedControl.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSegmentedControlManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSegmentedControlManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTShadowView+Internal.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTShadowView+Internal.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTShadowView+Layout.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTShadowView+Layout.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTShadowView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTShadowView.m Fix or mark enum conversions 2018-05-22 09:53:54 -07:00
RCTSlider.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSlider.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSliderManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSliderManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSwitch.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSwitch.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSwitchManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSwitchManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTVView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTVView.m onPress animation with magnification 2018-02-27 13:10:02 -08:00
RCTTabBar.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTabBar.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTabBarItem.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTabBarItem.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTabBarItemManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTabBarItemManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTabBarManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTabBarManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTextDecorationLineType.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTView.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTViewManager.h Mark ObjC methods that are called from React Native as dynamic. 2018-02-26 12:24:17 -08:00
RCTViewManager.m changed prop name currentViewStates to AccessibilityStates on iOS (3/3) 2018-07-19 14:13:01 -07:00
RCTWebView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTWebView.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTWebViewManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTWebViewManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTWrapperViewController.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTWrapperViewController.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
UIView+Private.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
UIView+React.h added check for iOS 11 on ignore inverted colors 2018-06-28 12:09:58 -07:00
UIView+React.m added check for iOS 11 on ignore inverted colors 2018-06-28 12:09:58 -07:00