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
This commit is contained in:
David Vacca
2023-09-25 18:09:13 -07:00
committed by Facebook GitHub Bot
parent c62d174989
commit 27b631e5b0
3 changed files with 5 additions and 5 deletions
@@ -88,7 +88,7 @@ public class ReactActivityDelegate {
}
public ReactHost getReactHost() {
return ((ReactApplication) getPlainActivity().getApplication()).getReactHostInterface();
return ((ReactApplication) getPlainActivity().getApplication()).getReactHost();
}
public ReactInstanceManager getReactInstanceManager() {
@@ -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
}
@@ -178,7 +178,7 @@ public class RNTesterApplication extends Application implements ReactApplication
@Override
@UnstableReactNativeAPI
public ReactHost getReactHostInterface() {
public ReactHost getReactHost() {
if (mReactHost == null) {
// Create an instance of ReactHost to manager the instance of ReactInstance,
// which is similar to how we use ReactNativeHost to manager instance of ReactInstanceManager