react/packages/react-native-renderer/src
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
..
__mocks__/react-native/Libraries/ReactPrivate Fabric HostComponent as EventEmitter: support add/removeEventListener (unstable only) (#23386) 2022-03-02 12:00:08 -08:00
__tests__ Show a soft error when a text string or number is supplied as a child to non text wrappers (#22109) 2021-08-16 21:43:24 -04:00
legacy-events Fabric HostComponent as EventEmitter: support add/removeEventListener (unstable only) (#23386) 2022-03-02 12:00:08 -08:00
server Split writeChunk into void and return value (#23343) 2022-02-23 11:35:21 -05:00
NativeMethodsMixinUtils.js Use console directly instead of warning() modules (#17599) 2019-12-14 18:09:25 +00:00
ReactFabric.js [Devtools][Transition Tracing] Add Transition callbacks to createRoot (#23276) 2022-02-11 10:15:10 -08:00
ReactFabricComponentTree.js [RFC] Codemod invariant -> throw new Error (#22435) 2021-09-30 12:01:28 -07:00
ReactFabricEventEmitter.js Fabric HostComponent as EventEmitter: support add/removeEventListener (unstable only) (#23386) 2022-03-02 12:00:08 -08:00
ReactFabricGlobalResponderHandler.js Enable setJSResponder/setIsJSResponder for React Native Fabric (#21439) 2021-05-05 21:09:04 -07:00
ReactFabricHostConfig.js Fabric HostComponent as EventEmitter: support add/removeEventListener (unstable only) (#23386) 2022-03-02 12:00:08 -08:00
ReactFabricInjection.js Fork legacy-events folder into react-dom and react-native (#19228) 2020-07-01 16:37:13 +01:00
ReactNativeAttributePayload.js Reland Remove redundant initial of isArray (#21188) 2021-04-07 07:57:43 -07:00
ReactNativeBridgeEventPlugin.js Fabric HostComponent as EventEmitter: support add/removeEventListener (unstable only) (#23386) 2022-03-02 12:00:08 -08:00
ReactNativeComponentTree.js [RFC] Codemod invariant -> throw new Error (#22435) 2021-09-30 12:01:28 -07:00
ReactNativeEventEmitter.js Fabric HostComponent as EventEmitter: support add/removeEventListener (unstable only) (#23386) 2022-03-02 12:00:08 -08:00
ReactNativeEventPluginOrder.js Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
ReactNativeFiberHostComponent.js Sync `ReactNativeTypes` from React Native (#21015) 2021-03-15 23:48:59 -07:00
ReactNativeFiberInspector.js [RFC] Codemod invariant -> throw new Error (#22435) 2021-09-30 12:01:28 -07:00
ReactNativeGetListeners.js Fabric HostComponent as EventEmitter: support add/removeEventListener (unstable only) (#23386) 2022-03-02 12:00:08 -08:00
ReactNativeGlobalResponderHandler.js [react-native] Use path-based imports instead of Haste for the RN renderer (#15604) 2019-05-23 08:23:54 +01:00
ReactNativeHostConfig.js Resolve default onRecoverableError at root init (#23264) 2022-02-10 07:59:10 -08:00
ReactNativeInjection.js Fork legacy-events folder into react-dom and react-native (#19228) 2020-07-01 16:37:13 +01:00
ReactNativeInjectionShared.js Fork legacy-events folder into react-dom and react-native (#19228) 2020-07-01 16:37:13 +01:00
ReactNativeRenderer.js [Devtools][Transition Tracing] Add Transition callbacks to createRoot (#23276) 2022-02-11 10:15:10 -08:00
ReactNativeTypes.js Export React Native `AttributeType` Types (#21661) 2021-06-11 00:45:49 -07:00