Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to No actionable issue was established in the changed Android press timing; the PR is mergeable after normal checks. Pre-merge checks |
|
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The lifecycle changes correctly preserve timing and cancellation behavior while addressing deferred native presses.
Review effort: Balanced
Findings: None
What changed in this PR
Aligns Android v3 Touchable callbacks with native pressed-state feedback.
Changes:
- Dispatches
onPressInwhensetPressed(true)occurs. - Measures long-press delay from the original down time.
- Avoids press callbacks when scrolling intercepts the touch.
| File | Description |
|---|---|
RNGestureHandlerButtonViewManager.kt |
Synchronizes press callbacks and long-press timing with native feedback. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…oid-press-in-on-pressed
onPressIn when the native press starts
…oid-press-in-on-pressed
…oid-press-in-on-pressed
Description
On Android
onPressInwas sent when theNativegesture began, i.e. on theDOWN. The platform defers the pressed state inside scrolling containers and drops it when a parent intercepts the touch, so a tap that stops a fling firedonPressInandonPressOutwith noonPress, and feedback driven fromonPressInran ahead of the native ripple (#4515).onPressInand the long press timer now followsetPressed(true), the moment the native press feedback starts. The long press timer is still measured from theDOWN.onPressOut,onPressand thepressOutAfterAnimationhold are unchanged.Fixes #4515
Test plan
Tested on the following code: