From e9185bbb315870e8211aaf486fe5e78ffb7507fa Mon Sep 17 00:00:00 2001 From: David Vacca Date: Mon, 25 Sep 2023 18:09:13 -0700 Subject: [PATCH] reactHostInterface -> reactHost (#39636) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39636 rename ReactApplication.reactHostInterface -> ReactApplication.reactHost changelog: [internal] internal Reviewed By: cortinico, arushikesarwani94 Differential Revision: D49610674 fbshipit-source-id: 24ddf410cf6aae176f673dc574216a3a12f25767 --- .../main/java/com/facebook/react/ReactActivityDelegate.java | 2 +- .../src/main/java/com/facebook/react/ReactApplication.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java index 19c3e19572a850..8546a5d6e149b7 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java @@ -88,7 +88,7 @@ protected ReactNativeHost getReactNativeHost() { } public ReactHost getReactHost() { - return ((ReactApplication) getPlainActivity().getApplication()).getReactHostInterface(); + return ((ReactApplication) getPlainActivity().getApplication()).getReactHost(); } public ReactInstanceManager getReactInstanceManager() { diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactApplication.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactApplication.kt index ea26b4fa892655..3f572fa149eae4 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactApplication.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactApplication.kt @@ -17,9 +17,9 @@ interface ReactApplication { val reactNativeHost: ReactNativeHost /** - * Get the default [ReactHostInterface] for this app. This method will be used by the new - * architecture of react native + * Get the default [ReactHost] for this app. This method will be used by the new architecture of + * react native */ - val reactHostInterface: ReactHost? + val reactHost: ReactHost? get() = null }