From dec2a7d6850b7f3ba0eb2db4e45180674be0f068 Mon Sep 17 00:00:00 2001 From: Arushi Kesarwani Date: Tue, 23 Apr 2024 16:31:10 -0700 Subject: [PATCH] Fixing exposing ReactDelegate through ReactActivity for reload() (#44227) Summary: In https://github.com/facebook/react-native/pull/44223/ kudo identified the incorrect return type. Differential Revision: D56497700 --- .../src/main/java/com/facebook/react/ReactActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java index 45306772da1244..b68be38edd1316 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java @@ -65,8 +65,8 @@ protected void onDestroy() { mDelegate.onDestroy(); } - public void getReactDelegate() { - mDelegate.getReactDelegate(); + public ReactDelegate getReactDelegate() { + return mDelegate.getReactDelegate(); } public ReactActivityDelegate getReactActivityDelegate() {