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
Expose native visual pressed state for custom animations inside scroll views #4515
We’re using Gesture Handler’s ScrollView and Touchable with a custom press animation. We want our custom animation to follow the platform’s native touch handling: defer feedback while a touch may become a scroll, and cancel feedback when scrolling takes over.
Observed behavior
On Android, onPressIn can fire before the native view enters its visual pressed state. Starting our custom animation from this callback therefore briefly animates the button when the user intends to scroll, even with delaysChildPressedState enabled.
Desired behavior
We think this is a bug and the native press feedback and a custom animation should start and be canceled in the same way.
Hi @BenedictP! Thank you for pointing out this problem!
We do want to fix it, but unfortunately the approach proposed in #4516 is not what we would do. To address this issue, I've opened new stack with this PR on top of it - it should fix the problem you've encountered. Let me know if you could check it 😅
Activity
BenedictP commentedon Sep 14, 2026
PR with another example screen: #4516 feel free to close it after trying it out.
m-bert commentedon Oct 8, 2026
Hi @BenedictP! Thank you for pointing out this problem!
We do want to fix it, but unfortunately the approach proposed in #4516 is not what we would do. To address this issue, I've opened new stack with this PR on top of it - it should fix the problem you've encountered. Let me know if you could check it 😅
BenedictP commentedon Oct 12, 2026
Hi @m-bert, yep, that's ok. The PR was just a further example :) I can later check your fix and report back if it's also working for us.
BenedictP commentedon Oct 12, 2026
Confirmed. The PR fixes the issue within our codebase 🚀
m-bert commentedon Oct 12, 2026
Glad to hear that, thank you for confirmation! ❤️
[Android] Add `pressOutAfterAnimation` prop to `Touchable` (#4568)
[iOS] Implement `pressOutAfterAnimation` on `Touchable` (#4570)
[Android] Dispatch `onPressIn` when the native press starts (#4575)