mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Change Scroller getter to protected (#52387)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52387 I would like to grab this in a subclass but unfortunately can't. It is kinda jank since this is a val obtained via reflection, but I figure this is better than copy and paste. I think that I could also expose a function that uses this scroller the way I want it to. Let me know if there are strong objections here Changelog: [Internal] Reviewed By: rozele Differential Revision: D77684599 fbshipit-source-id: 6f02c1da5135c1cf34fa1483542e06bf8f0be75e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
097d482446
commit
cec0de8f99
@@ -5746,6 +5746,7 @@ public class com/facebook/react/views/scroll/ReactScrollView : android/widget/Sc
|
||||
public fun getFlingAnimator ()Landroid/animation/ValueAnimator;
|
||||
public fun getFlingExtrapolatedDistance (I)I
|
||||
public fun getLastScrollDispatchTime ()J
|
||||
protected fun getOverScrollerFromParent ()Landroid/widget/OverScroller;
|
||||
public fun getOverflow ()Ljava/lang/String;
|
||||
public fun getOverflowInset ()Landroid/graphics/Rect;
|
||||
public fun getPointerEvents ()Lcom/facebook/react/uimanager/PointerEvents;
|
||||
|
||||
+1
-1
@@ -165,7 +165,7 @@ public class ReactScrollView extends ScrollView
|
||||
}
|
||||
|
||||
@Nullable
|
||||
private OverScroller getOverScrollerFromParent() {
|
||||
protected OverScroller getOverScrollerFromParent() {
|
||||
OverScroller scroller;
|
||||
|
||||
if (!sTriedToGetScrollerField) {
|
||||
|
||||
Reference in New Issue
Block a user