-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RN: Change Dimensions to Return EventSubscription
Summary: Changes `Dimensions.addEventListener` to return an `EventSubscription` object that has a `remove()` method on it. In an upcoming commit, calling `Dimensions.removeEventListener` will lead to a deprecation warning. Changelog: [General][Change] - `Dimensions.addEventListener` now returns an `EventSubscription`. Reviewed By: kacieb Differential Revision: D26808827 fbshipit-source-id: 0cfdc65b83c177f60937c1aa3a4cf633592f73d7
- Loading branch information
1 parent
42fa4a6
commit c47a035
Showing
3 changed files
with
24 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters