Files
react-native/Libraries
Tim Yung d39643b9de RN: Rewrite NativeEventEmitter
Summary:
Rewrites `NativeEventEmitter` to not extend `EventEmitter` and to compose `RCTDeviceEventEmitter` instead of (mis)using its exported `sharedSubscriber` property.

This makes it easier to reason about `NativeEventEmitter`. Also, the extraneous methods on `EventEmitter` are no longer inherited.

Changelog:
[General][Removed] - `NativeEventEmitter` no longer inherits from `EventEmitter`, so it no longer implements `removeListener` and `removeSubscription`. Instead, use the `remove()` method on the subscription object returned by `addListener`.

Reviewed By: rubennorte

Differential Revision: D26163562

fbshipit-source-id: c1aadb99bdefbaa36fece57ce74604e414f94d4d
2021-02-09 21:27:45 -08:00
..
2021-02-04 12:48:13 -08:00
2021-02-08 17:49:31 -08:00
2020-10-18 20:30:55 -07:00
2021-02-04 17:17:17 -08:00
2021-02-09 21:27:45 -08:00
2021-02-09 21:27:45 -08:00
2020-02-21 10:34:40 -08:00