-
Notifications
You must be signed in to change notification settings - Fork 24.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: Added pointerEvents style equivalent to pointerEvents prop #34586
feat: Added pointerEvents style equivalent to pointerEvents prop #34586
Conversation
Base commit: 12e5842 |
Base commit: 12e5842 |
@jacdebug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
This pull request was successfully merged by @cyrus25 in 5c109b3. When will my fix make it into a release? | Upcoming Releases |
forwardedRef, | ||
) => { | ||
const flattendStyle = flattenStyle(style); | ||
const newPointerEvents = pointerEvents || flattendStyle?.pointerEvents; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably should have made the style take priority
{tabIndex, focusable, style, pointerEvents, ...otherProps}: ViewProps, | ||
forwardedRef, | ||
) => { | ||
const flattendStyle = flattenStyle(style); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flattendStyle => flattenedStyle
Summary: Make style pointerEvents take priority over pointerEvents prop. Fixes requested changes in #34586 ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [General] [Fixed] - Make style pointerEvents take priority over pointerEvents prop. FIxes requested changes in #34586 Pull Request resolved: #34597 Test Plan: Will rely on green cli Reviewed By: NickGerleman Differential Revision: D39269306 Pulled By: cipolleschi fbshipit-source-id: 0927bf6ad7e3ac63e82dbd1a873532152f29001d
…ook#34597) Summary: Make style pointerEvents take priority over pointerEvents prop. Fixes requested changes in facebook#34586 ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [General] [Fixed] - Make style pointerEvents take priority over pointerEvents prop. FIxes requested changes in facebook#34586 Pull Request resolved: facebook#34597 Test Plan: Will rely on green cli Reviewed By: NickGerleman Differential Revision: D39269306 Pulled By: cipolleschi fbshipit-source-id: 0927bf6ad7e3ac63e82dbd1a873532152f29001d
Summary
This adds
pointerEvents
style which is equivalent topointerEvents
prop as requested in #34425Changelog
[General] [Added] - Added pointerEvents style equivalent to pointerEvents prop
Test Plan