Skip to content

fix(iOS): Pressable blockNativeResponder box#57336

Draft
mdjastrzebski wants to merge 30 commits into
react:mainfrom
mdjastrzebski:fix/pressable-prevent-native-propagation
Draft

fix(iOS): Pressable blockNativeResponder box#57336
mdjastrzebski wants to merge 30 commits into
react:mainfrom
mdjastrzebski:fix/pressable-prevent-native-propagation

Conversation

@mdjastrzebski

@mdjastrzebski mdjastrzebski commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary:

Fix blockNativeResponder prop workings on iOS. It already works fine on Android.

Before:

block.native.responder.before.mp4

Fixes: #56061

In our case this bug manifested in the following scenario:

In our iPad application the iOS 26 system scroll-to-top area are is overlapping with navigation bar. When pressing buttons in the top bar the iOS invokes native behavior of scroll to the top, as Pressable-based buttons are non consuming the touch and it gets delivered native views.

See the red box for scroll-to-top area:
CleanShot 2026-06-25 at 16 08 25@2x

The same issue has been reported in React Navigation repo: react-navigation/react-navigation#12843

Changelog:

[IOS] [FIXED] - blockNativeResponder prop effect on native responders

Test Plan:

Open Pressable experiment:

block.native.responder.prop.mp4

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 25, 2026
@mdjastrzebski mdjastrzebski changed the title Fix/pressable prevent native propagation fix(iOS): Pressable prevent native propagation prop Jun 25, 2026
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Jun 25, 2026
@mdjastrzebski mdjastrzebski changed the title fix(iOS): Pressable prevent native propagation prop fix(iOS): Pressable blockNativeResponder box Jun 25, 2026
@mdjastrzebski mdjastrzebski marked this pull request as draft June 25, 2026 15:31
@mdjastrzebski mdjastrzebski changed the title fix(iOS): Pressable blockNativeResponder box fix: Pressable blockNativeResponder box Jun 25, 2026
@mdjastrzebski mdjastrzebski changed the title fix: Pressable blockNativeResponder box fix(iOS): Pressable blockNativeResponder box Jun 25, 2026
mdjastrzebski and others added 5 commits June 25, 2026 18:25
…ing race

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pressables don't prevent touches being forwarded to OS

1 participant