Allow RCTScrollViewComponentView to be subclass-able (#56319)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56319

While RCTScrollViewComponentView is overridable, its NOT a UIScrollView. It has a private property this is the scroll view and if you want to override UIScrollView behavior you have to change this.

Changelog: [Internal]

Reviewed By: sbuggay

Differential Revision: D99462381

fbshipit-source-id: fec7741248c229c301ba60b6b2b4d06bb14297de
This commit is contained in:
Joe Vilches authored and meta-codesync[bot] committed 2026-04-08 15:45:58 -07:00
1 parent dd0290f8f4
commit b1d12f5354
3 files changed
+3 -3

No files matched your search

@@ -36,7 +36,7 @@ NS_ASSUME_NONNULL_BEGIN
/*
* Returns an actual UIScrollView that this component uses under the hood.
*/
@property (nonatomic, strong, readonly) UIScrollView *scrollView;
@property (nonatomic, strong, readwrite) UIScrollView *scrollView;
/** Focus area of newly-activated text input relative to the window to compare against UIKeyboardFrameBegin/End */
@property (nonatomic, assign) CGRect firstResponderFocus;
@@ -1987,8 +1987,8 @@ interface RCTScrollView : public RCTView <UIScrollViewDelegate, RCTScrollablePro
interface RCTScrollViewComponentView {
protected __pad0__;
public @property (assign) CGRect firstResponderFocus;
public @property (strong) UIScrollView* scrollView;
public @property (strong, readonly) RCTGenericDelegateSplitter<id<UIScrollViewDelegate>>* scrollViewDelegateSplitter;
public @property (strong, readonly) UIScrollView* scrollView;
public @property (strong, readonly) UIView* containerView;
public @property (weak) UIView* firstResponderViewOutsideScrollView;
public virtual static _Nullable RCTScrollViewComponentView* findScrollViewComponentViewForView:(UIView* view);
@@ -1987,8 +1987,8 @@ interface RCTScrollView : public RCTView <UIScrollViewDelegate, RCTScrollablePro
interface RCTScrollViewComponentView {
protected __pad0__;
public @property (assign) CGRect firstResponderFocus;
public @property (strong) UIScrollView* scrollView;
public @property (strong, readonly) RCTGenericDelegateSplitter<id<UIScrollViewDelegate>>* scrollViewDelegateSplitter;
public @property (strong, readonly) UIScrollView* scrollView;
public @property (strong, readonly) UIView* containerView;
public @property (weak) UIView* firstResponderViewOutsideScrollView;
public virtual static _Nullable RCTScrollViewComponentView* findScrollViewComponentViewForView:(UIView* view);