Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve docs of onResponderGrant and expose via Pressability #38195

Closed
wants to merge 1 commit into from

Conversation

javache
Copy link
Member

@javache javache commented Jul 5, 2023

Summary:
onResponderGrant's return value drives the blockNativeResponder value for the setIsJSResponder native callback. On Android this is used to call requestDisallowInterceptTouchEvent, which can be used to prevent a scrollview from activating while another responder is active.

Changelog: [Improved] Exposed ability to block native responder in Pressability. Pressables using cancelable={false} will now prevent scrolling and other native gestures from activating.

Differential Revision: D47225928

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Jul 5, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47225928

@analysis-bot
Copy link

analysis-bot commented Jul 5, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 9,000,334 +31
android hermes armeabi-v7a 8,254,434 +40
android hermes x86 9,509,485 +29
android hermes x86_64 9,355,235 +38
android jsc arm64-v8a 9,613,642 -6
android jsc armeabi-v7a 8,740,278 +6
android jsc x86 9,700,609 +2
android jsc x86_64 9,947,158 +1

Base commit: f6c91bf
Branch: main

javache added a commit to javache/react-native that referenced this pull request Jul 5, 2023
…k#38195)

Summary:
Pull Request resolved: facebook#38195

`onResponderGrant`'s return value drives the `blockNativeResponder` value for the `setIsJSResponder` native callback. On Android this is used to call `requestDisallowInterceptTouchEvent`, which can be used to prevent a scrollview from activating while another responder is active.

Changelog: [Improved] Exposed ability to block native responder in Pressability.

Differential Revision: D47225928

fbshipit-source-id: 52a88936a1243c63ef93a6aa43fbcb587e6aa873
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47225928

javache added a commit to javache/react-native that referenced this pull request Jul 5, 2023
…k#38195)

Summary:
Pull Request resolved: facebook#38195

`onResponderGrant`'s return value drives the `blockNativeResponder` value for the `setIsJSResponder` native callback. On Android this is used to call `requestDisallowInterceptTouchEvent`, which can be used to prevent a scrollview from activating while another responder is active.

Changelog: [Improved] Exposed ability to block native responder in Pressability.

Differential Revision: D47225928

fbshipit-source-id: c94ed3a3bb98b6266052ddc8969a5d22d1385af8
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47225928

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47225928

javache added a commit to javache/react-native that referenced this pull request Jul 6, 2023
…k#38195)

Summary:
Pull Request resolved: facebook#38195

`onResponderGrant`'s return value drives the `blockNativeResponder` value for the `setIsJSResponder` native callback. On Android this is used to call `requestDisallowInterceptTouchEvent`, which can be used to prevent a scrollview from activating while another responder is active.

Changelog: [Improved] Exposed ability to block native responder in Pressability.

Differential Revision: D47225928

fbshipit-source-id: 27dbcadebcd08461ca974d4e4414cd2be41e399e
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47225928

javache added a commit to javache/react-native that referenced this pull request Jul 6, 2023
…k#38195)

Summary:
Pull Request resolved: facebook#38195

`onResponderGrant`'s return value drives the `blockNativeResponder` value for the `setIsJSResponder` native callback. On Android this is used to call `requestDisallowInterceptTouchEvent`, which can be used to prevent a scrollview from activating while another responder is active.

Changelog: [Improved] Exposed ability to block native responder in Pressability.

Differential Revision: D47225928

fbshipit-source-id: bc695b9f2c25b5fc9aa5b3fe30c74c129e072c98
javache added a commit to javache/react-native that referenced this pull request Jul 6, 2023
…k#38195)

Summary:
Pull Request resolved: facebook#38195

`onResponderGrant`'s return value drives the `blockNativeResponder` value for the `setIsJSResponder` native callback. On Android this is used to call `requestDisallowInterceptTouchEvent`, which can be used to prevent a scrollview from activating while another responder is active.

Changelog: [Improved] Exposed ability to block native responder in Pressability.

Differential Revision: D47225928

fbshipit-source-id: a436af0eb4dff0b430a49ff94ba7c76948f4d00f
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47225928

…k#38195)

Summary:
Pull Request resolved: facebook#38195

`onResponderGrant`'s return value drives the `blockNativeResponder` value for the `setIsJSResponder` native callback. On Android this is used to call `requestDisallowInterceptTouchEvent`, which can be used to prevent a scrollview from activating while another responder is active.

Changelog: [Improved] Exposed ability to block native responder in Pressability. Pressables using `cancelable={false}` will now prevent scrolling and other native gestures from activating.

Reviewed By: yungsters

Differential Revision: D47225928

fbshipit-source-id: 2af222bcf2debc61c42f55e076f3bff18a975eb3
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47225928

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jul 6, 2023
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 0f393a5.

@javache javache deleted the export-D47225928 branch July 7, 2023 08:40
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. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants