Skip to content

Conversation

@acoates-ms
Copy link
Contributor

@acoates-ms acoates-ms commented Aug 29, 2024

Description

Enable custom components to raise events.

What

Implement a public EventEmitter class, which can be used to raise events on a component.
Add a builder method to set a updateEventEmitter handler to allow access to the event emitter to custom components.
Removed some unused methods on ComponentView.
Made some trivial methods on ComponentView noexcept.
Added example usage of custom events in playground app.

Microsoft Reviewers: Open in CodeFlow

@acoates-ms acoates-ms requested review from a team as code owners August 29, 2024 23:30
Copy link
Contributor

@rurikoaraki rurikoaraki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@acoates-ms acoates-ms merged commit 829ff8d into microsoft:main Aug 30, 2024
@acoates-ms acoates-ms deleted the customeventemitters branch August 30, 2024 17:49
acoates-ms added a commit to acoates-ms/react-native-windows that referenced this pull request Aug 30, 2024
…icrosoft#13635)

* [Fabric] Enable implementation of custom events on custom components

* Change files

* format

* lint fix

* fix
acoates-ms added a commit to acoates-ms/react-native-windows that referenced this pull request Aug 30, 2024
…icrosoft#13635)

* [Fabric] Enable implementation of custom events on custom components

* Change files

* format

* lint fix

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

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants