diff --git a/React/Views/RCTScrollView.m b/React/Views/RCTScrollView.m index a90de0d04..a2d1e5d85 100644 --- a/React/Views/RCTScrollView.m +++ b/React/Views/RCTScrollView.m @@ -894,8 +894,13 @@ RCT_SCROLL_EVENT_HANDLER(scrollViewDidZoom, onScroll) lastIndex, subviewCount); } } +} - [_scrollView dockClosestSectionHeader]; +- (void)didSetProps:(NSArray *)changedProps +{ + if ([changedProps containsObject:@"stickyHeaderIndices"]) { + [_scrollView dockClosestSectionHeader]; + } } // Note: setting several properties of UIScrollView has the effect of