Skip to content

Commit c3053bc

Browse files
committed
Fix iOS build for ScrollView component view
1 parent f11265d commit c3053bc

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

packages/react-native/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,15 @@ @interface RCTScrollViewComponentView () <
9595
RCTScrollableProtocol,
9696
RCTEnhancedScrollViewOverridingDelegate>
9797

98+
- (void)_preserveContentOffsetIfNeededWithBlock:(void (^)())block;
99+
- (void)_remountChildrenIfNeeded;
100+
- (void)_remountChildren;
101+
- (void)_forceDispatchNextScrollEvent;
102+
- (void)_handleScrollEndIfNeeded;
103+
- (void)_handleFinishedScrolling:(RCTUIScrollView *)scrollView;
104+
- (void)_prepareForMaintainVisibleScrollPosition;
105+
- (void)_adjustForMaintainVisibleContentPosition;
106+
98107
@end
99108

100109
@implementation RCTScrollViewComponentView {
@@ -845,9 +854,9 @@ - (void)didMoveToWindow
845854
[super didMoveToWindow];
846855
#else // [macOS
847856
- (void)viewDidMoveToWindow // [macOS]
848-
#endif // [macOS]
849857
{
850858
[super viewDidMoveToWindow];
859+
#endif // [macOS]
851860

852861
#if TARGET_OS_OSX // [macOS
853862
NSNotificationCenter *defaultCenter = [NSNotificationCenter defaultCenter];

0 commit comments

Comments
 (0)