Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RN: Remove
RCTDeviceEventEmitter
Checks
Summary: Removes the checks in `RCTDeviceEventEmitter` that were initially added to migrate call sites to other modules when `NativeEventEmitter` was introduced. This set of checks is problematic for a few reasons: 1. Does not cover many other events that have since been introduced, so the small list covered is arbitrary. 2. Prevents composition of `RCTDeviceEventEmitter` in the implementation of those modules. 3. Code bloat. Changelog: [General][Removed] - `RCTDeviceEventEmitter` no longer throws for `SttatusBar`, `Keyboard`, and `AppState` events. However, you are still recommended to use the more appropriate modules for listening to these events. Reviewed By: lunaleaps Differential Revision: D26163602 fbshipit-source-id: 316287bfdf2947fe85d022a3f83a205e89c432ba
- Loading branch information