mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
8729d27206
Summary: Sending global events with `eventDispatcher` has been [deprecated](https://github.com/facebook/react-native/commit/d9737571c43d39af41d539de2dd12c2ceb5cda0e) since 0.28, with a recommendation to subclass `RCTEventEmitter` instead, but there were no docs for this. This updates the iOS native module to use the recommended way, and also documents the use of `stopObserving` and `startObserving`. Tested and working in a real app. cc nicklockwood Closes https://github.com/facebook/react-native/pull/11792 Differential Revision: D4394626 fbshipit-source-id: 68b26d35944a521bf683a50ec1ab21f03b5e99d8