Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions packages/react-native/ReactAndroid/api/ReactAndroid.api
Original file line number Diff line number Diff line change
Expand Up @@ -5403,6 +5403,7 @@ public final class com/facebook/react/views/modal/ReactModalHostView : android/v
public final fun setStateWrapper (Lcom/facebook/react/uimanager/StateWrapper;)V
public final fun setStatusBarTranslucent (Z)V
public final fun setTransparent (Z)V
public fun shouldDelayChildPressedState ()Z
public final fun showOrUpdate ()V
}

Expand Down Expand Up @@ -6445,6 +6446,7 @@ public class com/facebook/react/views/view/ReactViewGroup : android/view/ViewGro
public fun setPointerEvents (Lcom/facebook/react/uimanager/PointerEvents;)V
public fun setRemoveClippedSubviews (Z)V
public final fun setTranslucentBackgroundDrawable (Landroid/graphics/drawable/Drawable;)V
public fun shouldDelayChildPressedState ()Z
public fun updateClippingRect ()V
public fun updateClippingRect (Ljava/util/Set;)V
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ public class ReactModalHostView(context: ThemedReactContext) :
dialogRootViewGroup.dispatchProvideStructure(structure)
}

override fun shouldDelayChildPressedState(): Boolean = false

protected override fun onLayout(changed: Boolean, l: Int, t: Int, r: Int, b: Int) {
// Do nothing as we are laid out by UIManager
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ internal class ReactSafeAreaView(val reactContext: ThemedReactContext) : ViewGro

override fun onLayout(p0: Boolean, p1: Int, p2: Int, p3: Int, p4: Int): Unit = Unit

override fun shouldDelayChildPressedState(): Boolean = false

@Suppress("DEPRECATION")
@UiThread
private fun updateState(insets: Insets) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ internal class PreparedLayoutTextView(context: Context) : ViewGroup(context), Re
}
}

override fun shouldDelayChildPressedState(): Boolean = false

public override fun dispatchHoverEvent(event: MotionEvent): Boolean =
super.dispatchHoverEvent(event)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,8 @@ public open class ReactViewGroup public constructor(context: Context?) :
}
}

override fun shouldDelayChildPressedState(): Boolean = false

override fun dispatchSetPressed(pressed: Boolean) {
// Prevents the ViewGroup from dispatching the pressed state
// to it's children.
Expand Down
Loading