Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,10 @@ - (void)updateClippedSubviewsWithClipRect:(CGRect)clipRect relativeToView:(UIVie

- (void)_remountChildrenIfNeeded
{
if (ReactNativeFeatureFlags::enableViewCulling()) {
return;
}

CGPoint contentOffset = _scrollView.contentOffset;

if (std::abs(_contentOffsetWhenClipped.x - contentOffset.x) < kClippingLeeway &&
Expand All @@ -961,6 +965,10 @@ - (void)_remountChildrenIfNeeded

- (void)_remountChildren
{
if (ReactNativeFeatureFlags::enableViewCulling()) {
return;
}

[_scrollView updateClippedSubviewsWithClipRect:CGRectInset(_scrollView.bounds, -kClippingLeeway, -kClippingLeeway)
relativeToView:_scrollView];
}
Expand Down
Loading