-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Conversation
This pull request was exported from Phabricator. Differential Revision: D47225928 |
Base commit: f6c91bf |
…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
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. Differential Revision: D47225928 fbshipit-source-id: c94ed3a3bb98b6266052ddc8969a5d22d1385af8
This pull request was exported from Phabricator. Differential Revision: D47225928 |
1 similar comment
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. Differential Revision: D47225928 fbshipit-source-id: 27dbcadebcd08461ca974d4e4414cd2be41e399e
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. Differential Revision: D47225928 fbshipit-source-id: bc695b9f2c25b5fc9aa5b3fe30c74c129e072c98
…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
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
This pull request was exported from Phabricator. Differential Revision: D47225928 |
This pull request has been merged in 0f393a5. |
Summary:
onResponderGrant
's return value drives theblockNativeResponder
value for thesetIsJSResponder
native callback. On Android this is used to callrequestDisallowInterceptTouchEvent
, 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