mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46254 Changelog: [internal] Right now it's very hard to access the surface ID from the target when dispatching events, and we need that to determine if the event we dispatched produced any updates its surface ID. This adds surfaceId to EventTarget so we can access it without an unnecessary large amount of indirection in the current code. This is a dependency for https://github.com/facebook/react-native/pull/46253 / D61939260, split to simplify reviewing. Reviewed By: sammy-SC, rshest Differential Revision: D61939910 fbshipit-source-id: 6dd6bc55fc6d4aa6cf8a535080c14a7a5b573b71