Commit e5d2d95
Restore getUIImplementation() stub for backwards compatibility (#55798)
Summary:
Pull Request resolved: #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: b00bccb74ef8a2c39005630fcabe6c3ad17022061 parent 1eca581 commit e5d2d95
2 files changed
Lines changed: 11 additions & 0 deletions
File tree
- packages/react-native/ReactAndroid
- api
- src/main/java/com/facebook/react/uimanager
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4358 | 4358 | | |
4359 | 4359 | | |
4360 | 4360 | | |
| 4361 | + | |
4361 | 4362 | | |
4362 | 4363 | | |
4363 | 4364 | | |
| |||
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
208 | 218 | | |
209 | 219 | | |
210 | 220 | | |
| |||
0 commit comments