react/packages/react-native-renderer
Joshua Gross 05c283c3c3
Fabric HostComponent as EventEmitter: support add/removeEventListener (unstable only) (#23386)
* Implement addEventListener and removeEventListener on Fabric HostComponent

* add files

* re-add CustomEvent

* fix flow

* Need to get CustomEvent from an import since it won't exist on the global scope by default

* yarn prettier-all

* use a mangled name consistently to refer to imperatively registered event handlers

* yarn prettier-all

* fuzzy null check

* fix capture phase event listener logic

* early exit from getEventListeners more often

* make some optimizations to getEventListeners and the bridge plugin

* fix accumulateInto logic

* fix accumulateInto

* Simplifying getListeners at the expense of perf for the non-hot path

* feedback

* fix impl of getListeners to correctly remove function

* pass all args in to event listeners
2022-03-02 12:00:08 -08:00
..
src Fabric HostComponent as EventEmitter: support add/removeEventListener (unstable only) (#23386) 2022-03-02 12:00:08 -08:00
fabric.js Convert React Native builds to named exports (#18136) 2020-02-27 11:33:44 -08:00
index.js Convert React Native builds to named exports (#18136) 2020-02-27 11:33:44 -08:00
package.json Remove object-assign polyfill (#23351) 2022-02-23 19:34:24 -05:00