react-native/React/Views
Arno Fortelny cac5ce3b93 RefreshControl on initial render will not beginRefresh when refreshing state is false
Summary:
There's an edge case in the `RefreshControl` which causes it to show as refreshing when the state is set to false. When the component is initialized with `refreshing` set to `true` on initial render but set to `false` before `layoutSubviews` is called, it will call `beginRefresh` and ignore its state. That's because `layoutSubviews` never checks if `_currentRefreshingState` is in fact still `true`, it merely assumes it is.

This is fixed by simply doing a check for `_currentRefreshingState` before entering `beginRefresh` from `layoutSubviews`.
Closes https://github.com/facebook/react-native/pull/7556

Differential Revision: D3300124

fbshipit-source-id: d1dce8612e2c03b1f14284d513803d00af4b5c8a
2016-05-13 14:43:26 -07:00
..
RCTActivityIndicatorViewManager.h
RCTActivityIndicatorViewManager.m
RCTAnimationType.h
RCTAutoInsetsProtocol.h
RCTBorderDrawing.h
RCTBorderDrawing.m
RCTBorderStyle.h
RCTComponent.h
RCTComponentData.h Removed eager init of all ViewManagers on layout 2016-02-26 08:18:34 -08:00
RCTComponentData.m add missing RCTConvert import 2016-04-15 13:24:21 -07:00
RCTConvert+CoreLocation.h
RCTConvert+CoreLocation.m
RCTConvert+MapKit.h
RCTConvert+MapKit.m
RCTDatePicker.h
RCTDatePicker.m
RCTDatePickerManager.h
RCTDatePickerManager.m Removed exported constants for fixed-size views 2016-04-26 04:21:39 -07:00
RCTImageComponent.h
RCTMap.h
RCTMap.m Conditionally allowing showCompass view property 2016-02-03 11:36:36 -08:00
RCTMapAnnotation.h
RCTMapAnnotation.m
RCTMapManager.h
RCTMapManager.m Fixed array bounds error in MapView 2016-04-22 10:59:29 -07:00
RCTMapOverlay.h
RCTMapOverlay.m
RCTModalHostView.h Modal Animation Types 2016-04-28 16:00:32 -07:00
RCTModalHostView.m Modal Animation Types 2016-04-28 16:00:32 -07:00
RCTModalHostViewController.h
RCTModalHostViewController.m Support multiple interface orientations in RCTDevLoadingView 2016-02-25 09:52:30 -08:00
RCTModalHostViewManager.h
RCTModalHostViewManager.m Modal Animation Types 2016-04-28 16:00:32 -07:00
RCTNavItem.h
RCTNavItem.m
RCTNavItemManager.h
RCTNavItemManager.m
RCTNavigator.h NavigatorIOS: Expose interactivePopGestureEnabled property 2016-05-06 03:18:20 -07:00
RCTNavigator.m NavigatorIOS: Expose interactivePopGestureEnabled property 2016-05-06 03:18:20 -07:00
RCTNavigatorManager.h
RCTNavigatorManager.m NavigatorIOS: Expose interactivePopGestureEnabled property 2016-05-06 03:18:20 -07:00
RCTPicker.h
RCTPicker.m
RCTPickerManager.h
RCTPickerManager.m Removed exported constants for fixed-size views 2016-04-26 04:21:39 -07:00
RCTPointerEvents.h
RCTProgressViewManager.h
RCTProgressViewManager.m Removed exported constants for fixed-size views 2016-04-26 04:21:39 -07:00
RCTRefreshControl.h
RCTRefreshControl.m RefreshControl on initial render will not beginRefresh when refreshing state is false 2016-05-13 14:43:26 -07:00
RCTRefreshControlManager.h
RCTRefreshControlManager.m Allow to set refresh control title color 2016-04-16 15:15:25 -07:00
RCTRootShadowView.h Extracted rootview-specific shadowview logic into new class 2016-03-21 03:21:27 -07:00
RCTRootShadowView.m Update css-layout from github 2016-04-04 04:10:24 -07:00
RCTScrollView.h Deprecated customDirectEventTypes, and removed from RCTScrollViewManager 2016-04-28 07:44:19 -07:00
RCTScrollView.m Add an array of scrollviewlisteners in RCTScrollableProtocol 2016-05-12 12:17:20 -07:00
RCTScrollViewManager.h
RCTScrollViewManager.m Deprecated customDirectEventTypes, and removed from RCTScrollViewManager 2016-04-28 07:44:19 -07:00
RCTScrollableProtocol.h Add an array of scrollviewlisteners in RCTScrollableProtocol 2016-05-12 12:17:20 -07:00
RCTSegmentedControl.h
RCTSegmentedControl.m
RCTSegmentedControlManager.h
RCTSegmentedControlManager.m Removed exported constants for fixed-size views 2016-04-26 04:21:39 -07:00
RCTShadowView.h Extracted rootview-specific shadowview logic into new class 2016-03-21 03:21:27 -07:00
RCTShadowView.m Update css-layout from github 2016-04-04 04:10:24 -07:00
RCTSlider.h
RCTSlider.m
RCTSliderManager.h
RCTSliderManager.m
RCTSwitch.h
RCTSwitch.m
RCTSwitchManager.h
RCTSwitchManager.m
RCTTabBar.h Enable setting color of text and images on unselected tabs 2016-05-03 05:40:29 -07:00
RCTTabBar.m Enable setting color of text and images on unselected tabs 2016-05-03 05:40:29 -07:00
RCTTabBarItem.h Enable setting color of text and images on unselected tabs 2016-05-03 05:40:29 -07:00
RCTTabBarItem.m Enable setting color of text and images on unselected tabs 2016-05-03 05:40:29 -07:00
RCTTabBarItemManager.h
RCTTabBarItemManager.m Enable setting color of text and images on unselected tabs 2016-05-03 05:40:29 -07:00
RCTTabBarManager.h
RCTTabBarManager.m Enable setting color of text and images on unselected tabs 2016-05-03 05:40:29 -07:00
RCTTextDecorationLineType.h
RCTView.h Add hitSlop prop on iOS and Android 2016-02-16 16:51:39 -08:00
RCTView.m improve view clipping 2016-05-10 10:51:24 -07:00
RCTViewControllerProtocol.h
RCTViewManager.h Move setBridge: off main thread 2016-05-03 09:09:21 -07:00
RCTViewManager.m Deprecate transformMatrix and decomposedMatrix 2016-04-29 14:19:25 -07:00
RCTWebView.h Implemented stopLoading 2016-04-22 08:15:25 -07:00
RCTWebView.m Implemented stopLoading 2016-04-22 08:15:25 -07:00
RCTWebViewManager.h
RCTWebViewManager.m Implemented stopLoading 2016-04-22 08:15:25 -07:00
RCTWrapperViewController.h
RCTWrapperViewController.m
UIView+Private.h
UIView+React.h Add debug tool to get shadowView from UIView 2016-03-16 10:18:22 -07:00
UIView+React.m Fix arc focus build 2016-03-22 10:58:29 -07:00