Skip to content

Add skipBubbling property to dispatch config#23366

Merged
lunaleaps merged 1 commit intofacebook:mainfrom
lunaleaps:optional-bubble-dispatch-config
Mar 14, 2022
Merged

Add skipBubbling property to dispatch config#23366
lunaleaps merged 1 commit intofacebook:mainfrom
lunaleaps:optional-bubble-dispatch-config

Conversation

@lunaleaps
Copy link
Contributor

Support skip bubbling for React Native bubbled events.

Introducing this to offer similar event dispatching for event behavior on the web. In particular, there are some events that we want to support in React Native that do not bubble. These are not synonymous with direct events on React Native as they still go through a capture phase.

How did you test this change?

Added a test case to demonstrate that ancestors do not receive bubbled events when skipBubbling is true

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants