Skip to content

RNTester: add legacy style event to MyNativeViewNativeComponent#42809

Closed
dmytrorykun wants to merge 1 commit into
facebook:mainfrom
dmytrorykun:export-D53310318
Closed

RNTester: add legacy style event to MyNativeViewNativeComponent#42809
dmytrorykun wants to merge 1 commit into
facebook:mainfrom
dmytrorykun:export-D53310318

Conversation

@dmytrorykun
Copy link
Copy Markdown

Summary:
This diff adds a legacy style event to MyNativeViewNativeComponent.
This is a way of defining events where you specify additional string type parameter in the EventHandler in the spec. This additional type parameter is an overridden top level event name, that can be completely unrelated to the event handler name.
In this example it is onLegacyStyleEvent and alternativeLegacyName.
More context here D16042065.

Changelog: [Internal]

Differential Revision: D53310318

Summary:
This diff adds a legacy style event to `MyNativeViewNativeComponent`.
This is a way of defining events where you specify additional string type parameter in the EventHandler in the spec. This additional type parameter is an overridden top level event name, that can be completely unrelated to the event handler name.
In this example it is `onLegacyStyleEvent` and `alternativeLegacyName`.
More context here D16042065.

Changelog: [Internal]

Differential Revision: D53310318
@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 labels Feb 2, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 17,201,554 +4,205
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 20,580,407 +4,180
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 184b295
Branch: main

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 13, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 4d07aae.

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