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