mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Fix UIManagerModule.getUIImplementation() to return a non-null UIImplementation (#55818)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
1 parent
c5a38ab285
commit
4d96fb5825
1 file changed
+2
-2
+2
-2
@@ -204,8 +204,8 @@ public class UIManagerModule extends ReactContextBaseJavaModule
|
||||
* will be removed in a future release.
|
||||
*/
|
||||
@Deprecated
|
||||
public @Nullable UIImplementation getUIImplementation() {
|
||||
return null;
|
||||
public UIImplementation getUIImplementation() {
|
||||
return new UIImplementation(null, null, null, 0);
|
||||
}
|
||||
|
||||
private static Map<String, Object> createConstants(ViewManagerResolver viewManagerResolver) {
|
||||
|
||||
Reference in new issue
Block a user