You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5a605ee
Browse filesBrowse the repository at this point in the historyBrowse files
Keep content hidden by any container out of keyboard navigation
aria-hidden on a ScrollView, a horizontal ScrollView,
DrawerLayoutAndroid or RefreshControl left their content in keyboard
navigation, because only ReactViewGroup filtered the descendants it
hides. The filtering moves into HiddenSubtreeFocusHelper, which every
container React Native renders calls from addFocusables and
onRequestFocusInDescendants, reading importantForAccessibility rather
than a copy of it, and BaseViewManager moves keyboard focus off a
subtree as it hides it, whatever the view type. The new public
overrides are added to ReactAndroid.api.
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/api/ReactAndroid.api
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -5159,6 +5159,7 @@ public abstract interface class com/facebook/react/viewmanagers/VirtualViewManag
5159
5159
5160
5160
public final class com/facebook/react/views/drawer/ReactDrawerLayout : androidx/drawerlayout/widget/DrawerLayout, com/facebook/react/uimanager/HasChildPressedStateDelay {
5161
5161
public fun <init> (Lcom/facebook/react/bridge/ReactContext;)V
5162
+
public fun addFocusables (Ljava/util/ArrayList;II)V
5162
5163
public fun getHasChildPressedStateDelay ()Ljava/lang/Boolean;
5163
5164
public fun onInterceptTouchEvent (Landroid/view/MotionEvent;)Z
5164
5165
public fun onTouchEvent (Landroid/view/MotionEvent;)Z
@@ -5513,6 +5514,7 @@ public class com/facebook/react/views/scroll/ReactHorizontalScrollView : android
5513
5514
public fun onLayoutChange (Landroid/view/View;IIIIIIII)V
5514
5515
protected fun onMeasure (II)V
5515
5516
protected fun onOverScrolled (IIZZ)V
5517
+
protected fun onRequestFocusInDescendants (ILandroid/graphics/Rect;)Z
5516
5518
protected fun onScrollChanged (IIII)V
5517
5519
protected fun onSizeChanged (IIII)V
5518
5520
public fun onTouchEvent (Landroid/view/MotionEvent;)Z
@@ -5623,6 +5625,7 @@ public class com/facebook/react/views/scroll/ReactScrollView : android/widget/Sc
5623
5625
public fun <init> (Landroid/content/Context;Lcom/facebook/react/views/scroll/FpsListener;)V
5624
5626
public synthetic fun <init> (Landroid/content/Context;Lcom/facebook/react/views/scroll/FpsListener;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
5625
5627
public fun abortAnimation ()V
5628
+
public fun addFocusables (Ljava/util/ArrayList;II)V
5626
5629
public fun dispatchGenericMotionEvent (Landroid/view/MotionEvent;)Z
5627
5630
public fun draw (Landroid/graphics/Canvas;)V
5628
5631
public fun executeKeyEvent (Landroid/view/KeyEvent;)Z
@@ -5662,6 +5665,7 @@ public class com/facebook/react/views/scroll/ReactScrollView : android/widget/Sc
5662
5665
public fun onLayoutChange (Landroid/view/View;IIIIIIII)V
5663
5666
protected fun onMeasure (II)V
5664
5667
protected fun onOverScrolled (IIZZ)V
5668
+
protected fun onRequestFocusInDescendants (ILandroid/graphics/Rect;)Z
5665
5669
protected fun onScrollChanged (IIII)V
5666
5670
protected fun onSizeChanged (IIII)V
5667
5671
public fun onTouchEvent (Landroid/view/MotionEvent;)Z
@@ -5977,10 +5981,12 @@ public final class com/facebook/react/views/scroll/VirtualViewContainerState$Com
5977
5981
5978
5982
public class com/facebook/react/views/swiperefresh/ReactSwipeRefreshLayout : androidx/swiperefreshlayout/widget/SwipeRefreshLayout, com/facebook/react/uimanager/HasChildPressedStateDelay {
5979
5983
public fun <init> (Lcom/facebook/react/bridge/ReactContext;)V
5984
+
public fun addFocusables (Ljava/util/ArrayList;II)V
5980
5985
public fun canChildScrollUp ()Z
5981
5986
public fun getHasChildPressedStateDelay ()Ljava/lang/Boolean;
5982
5987
public fun onInterceptTouchEvent (Landroid/view/MotionEvent;)Z
5983
5988
public fun onLayout (ZIIII)V
5989
+
protected fun onRequestFocusInDescendants (ILandroid/graphics/Rect;)Z
5984
5990
public fun onTouchEvent (Landroid/view/MotionEvent;)Z
5985
5991
public fun requestDisallowInterceptTouchEvent (Z)V
5986
5992
public fun setHasChildPressedStateDelay (Ljava/lang/Boolean;)V
@@ -6436,6 +6442,7 @@ public final class com/facebook/react/views/view/ReactDrawableHelper {
6436
6442
public class com/facebook/react/views/view/ReactViewGroup : android/view/ViewGroup, com/facebook/react/touch/ReactHitSlopView, com/facebook/react/touch/ReactInterceptingViewGroup, com/facebook/react/uimanager/HasElevatedDescendantCache, com/facebook/react/uimanager/ReactClippingViewGroup, com/facebook/react/uimanager/ReactOverflowViewWithInset, com/facebook/react/uimanager/ReactPointerEventsView {
6437
6443
public fun <init> (Landroid/content/Context;)V
6438
6444
public fun addChildrenForAccessibility (Ljava/util/ArrayList;)V
6445
+
public fun addFocusables (Ljava/util/ArrayList;II)V
6439
6446
public final fun cleanUpAxOrderListener ()V
6440
6447
protected fun dispatchDraw (Landroid/graphics/Canvas;)V
6441
6448
public fun dispatchGenericMotionEvent (Landroid/view/MotionEvent;)Z
@@ -6461,6 +6468,7 @@ public class com/facebook/react/views/view/ReactViewGroup : android/view/ViewGro
6461
6468
public fun onInterceptTouchEvent (Landroid/view/MotionEvent;)Z
6462
6469
protected fun onLayout (ZIIII)V
6463
6470
protected fun onMeasure (II)V
6471
+
protected fun onRequestFocusInDescendants (ILandroid/graphics/Rect;)Z
6464
6472
protected fun onSizeChanged (IIII)V
6465
6473
public fun onTouchEvent (Landroid/view/MotionEvent;)Z
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.kt
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/ReactSwipeRefreshLayout.kt
0 commit comments