mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
4d07aae7ef
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42809 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] Reviewed By: cortinico Differential Revision: D53310318 fbshipit-source-id: 4dec08c872acdfd09b9939f690fb7bc777149580