SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

[RN] Expose event as a global variable during dispatch (#35913)

## Summary

This PR updates the event dispatching logic in React Native to expose
the dispatched event in the global scope as done on Web
(https://dom.spec.whatwg.org/#concept-event-listener-inner-invoke) and
in the new implementation of `EventTarget` in React Native
(https://github.com/facebook/react-native/blob/d1b2ddc9cb4f7b4cb795fed197347173ed5c4bfb/packages/react-native/src/private/webapis/dom/events/EventTarget.js#L372).

## How did you test this change?

Added unit tests
R
Rubén Norte committed
98ce535fdb6ff559a5dd76b58c1bcaa983804957
Parent: a48e9e3
Committed by GitHub <noreply@github.com> on 2/26/2026, 3:51:23 PM