Skip to content

Restore getUIImplementation() stub for backwards compatibility#55798

Closed
sammy-SC wants to merge 1 commit intofacebook:mainfrom
sammy-SC:export-D94654682
Closed

Restore getUIImplementation() stub for backwards compatibility#55798
sammy-SC wants to merge 1 commit intofacebook:mainfrom
sammy-SC:export-D94654682

Conversation

@sammy-SC
Copy link
Copy Markdown
Contributor

Summary:
D93806249 removed getUIImplementation() from UIManagerModule as part of the
Legacy Architecture cleanup. However, third-party libraries like
react-native-safe-area-context still reference this method, causing build
failures in the e2e template app tests (https://github.com/facebook/react-native/actions/runs/22461280936/job/65112346970)

This restores the method as a deprecated stub that returns null, maintaining
backwards compatibility while keeping the Legacy Architecture cleanup intact.
Libraries that depend on this method will need to handle the null return value
or update to newer versions that don't use this deprecated API.

Changelog: [Android][Fixed] - Restore getUIImplementation() stub for backwards compatibility with third-party libraries

Reviewed By: cipolleschi

Differential Revision: D94654682

Summary:
D93806249 removed `getUIImplementation()` from `UIManagerModule` as part of the
Legacy Architecture cleanup. However, third-party libraries like
`react-native-safe-area-context` still reference this method, causing build
failures in the e2e template app tests (https://github.com/facebook/react-native/actions/runs/22461280936/job/65112346970)

This restores the method as a deprecated stub that returns `null`, maintaining
backwards compatibility while keeping the Legacy Architecture cleanup intact.
Libraries that depend on this method will need to handle the `null` return value
or update to newer versions that don't use this deprecated API.

Changelog: [Android][Fixed] - Restore getUIImplementation() stub for backwards compatibility with third-party libraries

Reviewed By: cipolleschi

Differential Revision: D94654682
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Feb 27, 2026

@sammy-SC has exported this pull request. If you are a Meta employee, you can view the originating Diff in D94654682.

@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 Feb 27, 2026
sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Feb 27, 2026
…ook#55798)

Summary:

D93806249 removed `getUIImplementation()` from `UIManagerModule` as part of the
Legacy Architecture cleanup. However, third-party libraries like
`react-native-safe-area-context` still reference this method, causing build
failures in the e2e template app tests (https://github.com/facebook/react-native/actions/runs/22461280936/job/65112346970)

This restores the method as a deprecated stub that returns `null`, maintaining
backwards compatibility while keeping the Legacy Architecture cleanup intact.
Libraries that depend on this method will need to handle the `null` return value
or update to newer versions that don't use this deprecated API.

Changelog: [Android][Fixed] - Restore getUIImplementation() stub for backwards compatibility with third-party libraries

Reviewed By: cipolleschi

Differential Revision: D94654682
@meta-codesync meta-codesync Bot closed this in e5d2d95 Feb 27, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Feb 27, 2026

This pull request has been merged in e5d2d95.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 27, 2026
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @sammy-SC in e5d2d95

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

zoontek pushed a commit to zoontek/react-native that referenced this pull request Mar 9, 2026
…ook#55798)

Summary:
Pull Request resolved: facebook#55798

D93806249 removed `getUIImplementation()` from `UIManagerModule` as part of the
Legacy Architecture cleanup. However, third-party libraries like
`react-native-safe-area-context` still reference this method, causing build
failures in the e2e template app tests (https://github.com/facebook/react-native/actions/runs/22461280936/job/65112346970)

This restores the method as a deprecated stub that returns `null`, maintaining
backwards compatibility while keeping the Legacy Architecture cleanup intact.
Libraries that depend on this method will need to handle the `null` return value
or update to newer versions that don't use this deprecated API.

Changelog: [Android][Fixed] - Restore getUIImplementation() stub for backwards compatibility with third-party libraries

Reviewed By: cipolleschi

Differential Revision: D94654682

fbshipit-source-id: b00bccb74ef8a2c39005630fcabe6c3ad1702206
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.

3 participants