Skip to content

Commit 4d96fb5

Browse files
cortinicometa-codesync[bot]
authored andcommitted
Fix UIManagerModule.getUIImplementation() to return a non-null UIImplementation (#55818)
Summary: Pull Request resolved: #55818 This unblocks the Android CI on master The deprecated getUIImplementation() method was returning null, which could cause NullPointerExceptions for callers that still depend on it. Return a new UIImplementation instance instead. Changelog: [Internal] - Fix `UIManagerModule.getUIImplementation()` to return a non-null `UIImplementation` instead of null Reviewed By: alanleedev Differential Revision: D94743629 fbshipit-source-id: df129f87c310a68634678ff7ed90e77275b02b51
1 parent c5a38ab commit 4d96fb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ public ViewManagerRegistry getViewManagerRegistry_DO_NOT_USE() {
204204
* will be removed in a future release.
205205
*/
206206
@Deprecated
207-
public @Nullable UIImplementation getUIImplementation() {
208-
return null;
207+
public UIImplementation getUIImplementation() {
208+
return new UIImplementation(null, null, null, 0);
209209
}
210210

211211
private static Map<String, Object> createConstants(ViewManagerResolver viewManagerResolver) {

0 commit comments

Comments
 (0)