Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove deprecated removeListener methods #33580

Conversation

matinzd
Copy link
Contributor

@matinzd matinzd commented Apr 6, 2022

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-bot facebook-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 matinzd force-pushed the fix/remove_deprecated_remove_listener_method branch from da24585 to ed34ab6 Compare April 6, 2022 20:52
@matinzd matinzd marked this pull request as ready for review April 6, 2022 20:52
@facebook-github-bot facebook-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
Copy link

analysis-bot commented Apr 6, 2022

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 61b013e
Branch: main

@analysis-bot
Copy link

analysis-bot commented Apr 6, 2022

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,770,117 +3,772
android hermes armeabi-v7a 7,176,131 +4,125
android hermes x86 8,079,305 +4,981
android hermes x86_64 8,058,021 +4,932
android jsc arm64-v8a 9,645,051 -228
android jsc armeabi-v7a 8,419,414 -230
android jsc x86 9,594,273 -221
android jsc x86_64 10,191,685 -236

Base commit: 61b013e
Branch: main

@matinzd
Copy link
Contributor Author

matinzd commented Apr 7, 2022

/cc @cortinico

@facebook-github-bot
Copy link
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
Collaborator

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

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

@react-native-bot react-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 (facebook#34260)

Summary:
The removeEventListener method has been removed from AccessibilityInfo and Linking in this PR: facebook#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: facebook#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 (facebook#34260)

Summary:
The removeEventListener method has been removed from AccessibilityInfo and Linking in this PR: facebook#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: facebook#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 free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Shared with Meta Applied 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