Skip to content

Add back receiveTouches on RCTEventEmitter with default implementation#55850

Closed
javache wants to merge 1 commit intofacebook:mainfrom
javache:export-D94903267
Closed

Add back receiveTouches on RCTEventEmitter with default implementation#55850
javache wants to merge 1 commit intofacebook:mainfrom
javache:export-D94903267

Conversation

@javache
Copy link
Copy Markdown
Member

@javache javache commented Mar 2, 2026

Summary:
D91320248 removed receiveTouches from the RCTEventEmitter interface entirely.
This was too big of a breaking change — ecosystem libraries that implement
RCTEventEmitter or RCTModernEventEmitter and override receiveTouches would
fail to compile.

This brings back receiveTouches on RCTEventEmitter but with a default no-op
implementation, so existing implementers that override it continue to compile, and
new implementers don't need to provide one.

Changelog: [Android][Changed] Re-added receiveTouches to RCTEventEmitter with a default no-op implementation to avoid breaking ecosystem libraries

Differential Revision: D94903267

Summary:
D91320248 removed `receiveTouches` from the `RCTEventEmitter` interface entirely.
This was too big of a breaking change — ecosystem libraries that implement
`RCTEventEmitter` or `RCTModernEventEmitter` and override `receiveTouches` would
fail to compile.

This brings back `receiveTouches` on `RCTEventEmitter` but with a default no-op
implementation, so existing implementers that override it continue to compile, and
new implementers don't need to provide one.

Changelog: [Android][Changed] Re-added `receiveTouches` to `RCTEventEmitter` with a default no-op implementation to avoid breaking ecosystem libraries

Differential Revision: D94903267
@meta-cla meta-cla 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 Mar 2, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 2, 2026

@javache has exported this pull request. If you are a Meta employee, you can view the originating Diff in D94903267.

Copy link
Copy Markdown
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@meta-codesync meta-codesync bot closed this in 67db89d Mar 2, 2026
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @javache in 67db89d

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Mar 2, 2026
@javache javache deleted the export-D94903267 branch March 4, 2026 19:54
zoontek pushed a commit to zoontek/react-native that referenced this pull request Mar 9, 2026
facebook#55850)

Summary:
Pull Request resolved: facebook#55850

D91320248 removed `receiveTouches` from the `RCTEventEmitter` interface entirely.
This was too big of a breaking change — ecosystem libraries that implement
`RCTEventEmitter` or `RCTModernEventEmitter` and override `receiveTouches` would
fail to compile.

This brings back `receiveTouches` on `RCTEventEmitter` but with a default no-op
implementation, so existing implementers that override it continue to compile, and
new implementers don't need to provide one.

Changelog: [Android][Changed] Re-added `receiveTouches` to `RCTEventEmitter` with a default no-op implementation to avoid breaking ecosystem libraries

Reviewed By: cortinico

Differential Revision: D94903267

fbshipit-source-id: fd89da9714b02a72c6ff271375307f620f5d2e3d
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. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants