Skip to content

fix: remove deprecated removeListener methods - #33580

Closed
matinzd wants to merge 3 commits into
react:mainfrom
matinzd:fix/remove_deprecated_remove_listener_method
Closed

fix: remove deprecated removeListener methods#33580
matinzd wants to merge 3 commits into
react:mainfrom
matinzd:fix/remove_deprecated_remove_listener_method

Conversation

@matinzd

Copy link
Copy Markdown
Contributor

Summary

Remove old deprecated modules that cause annoying warnings. This can be a breaking change for some third-party modules.

Changelog

[General] [Removed] - Remove deprecated removeListener methods

Test Plan

@facebook-github-botfacebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 6, 2022
@matinzd
matinzd marked this pull request as ready for review April 6, 2022 20:29
@matinzd
matinzd marked this pull request as draft April 6, 2022 20:32
@matinzd
matinzdforce-pushed the fix/remove_deprecated_remove_listener_method branch from da24585 to ed34ab6CompareApril 6, 2022 20:52
@matinzd
matinzd marked this pull request as ready for review April 6, 2022 20:52
@facebook-github-botfacebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Apr 6, 2022
@analysis-bot

analysis-bot commented Apr 6, 2022

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
ios-universaln/a--

Base commit: 61b013e
Branch: main

@analysis-bot

analysis-bot commented Apr 6, 2022

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
androidhermesarm64-v8a7,770,117+3,772
androidhermesarmeabi-v7a7,176,131+4,125
androidhermesx868,079,305+4,981
androidhermesx86_648,058,021+4,932
androidjscarm64-v8a9,645,051-228
androidjscarmeabi-v7a8,419,414-230
androidjscx869,594,273-221
androidjscx86_6410,191,685-236

Base commit: 61b013e
Branch: main

@matinzd

Copy link
Copy Markdown
ContributorAuthor

/cc @cortinico

Comment threadpackages/rn-tester/js/examples/Accessibility/AccessibilityExample.js Outdated
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cortinico has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @matinzd in 2596b2f.

When will my fix make it into a release? | Upcoming Releases

@react-native-botreact-native-bot added the Merged This PR has been merged. label May 4, 2022
@matinzd
matinzd deleted the fix/remove_deprecated_remove_listener_method branch May 4, 2022 23:23
facebook-github-bot pushed a commit that referenced this pull request Jul 26, 2022
Summary:
We are already returning the `remove` function, and the `removeEventListener` method has been removed in this PR: #33580. So I believe this comment is now outdated and no longer relevant.
## Changelog
<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->
[Internal] [Removed] - Remove outdated TODO in AppState
Pull Request resolved: #34264
Reviewed By: dmitryrykun
Differential Revision: D38120344
Pulled By: GijsWeterings
fbshipit-source-id: c6c4d42f5b631a67bb6ad49c14df1a772f1cc71b
facebook-github-bot pushed a commit that referenced this pull request Jul 27, 2022
…nking mocks (#34260)
Summary:
The removeEventListener method has been removed from AccessibilityInfo and Linking in this PR: #33580, so I believe we can remove it from the mocks.
## Changelog
<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->
[Internal] [Removed] - Remove removeEventListener from AccessibilityInfo and Linking mocks
Pull Request resolved: #34260
Test Plan: I executed jest and everything is still green.
Reviewed By: dmitryrykun
Differential Revision: D38198653
Pulled By: GijsWeterings
fbshipit-source-id: 72d10ca54cd505d7c76e7531c9df718b1a9b9ed1
roryabraham pushed a commit to Expensify/react-native that referenced this pull request Aug 17, 2022
…nking mocks (react#34260)
Summary:
The removeEventListener method has been removed from AccessibilityInfo and Linking in this PR: react#33580, so I believe we can remove it from the mocks.
## Changelog
<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->
[Internal] [Removed] - Remove removeEventListener from AccessibilityInfo and Linking mocks
Pull Request resolved: react#34260
Test Plan: I executed jest and everything is still green.
Reviewed By: dmitryrykun
Differential Revision: D38198653
Pulled By: GijsWeterings
fbshipit-source-id: 72d10ca54cd505d7c76e7531c9df718b1a9b9ed1
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.MergedThis PR has been merged.Shared with MetaApplied via automation to indicate that an Issue or Pull Request has been shared with the team.Type: Removal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@matinzd@analysis-bot@facebook-github-bot@react-native-bot@thomaswinckell