Skip to content

Commit

Permalink
reactHostInterface -> reactHost (facebook#39636)
Browse files Browse the repository at this point in the history
Summary:

rename ReactApplication.reactHostInterface -> ReactApplication.reactHost

changelog: [internal] internal

Reviewed By: cortinico, arushikesarwani94

Differential Revision: D49610674
  • Loading branch information
mdvacca authored and facebook-github-bot committed Sep 25, 2023
1 parent a07c31b commit 043393d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected ReactNativeHost getReactNativeHost() {
}

public ReactHost getReactHost() {
return ((ReactApplication) getPlainActivity().getApplication()).getReactHostInterface();
return ((ReactApplication) getPlainActivity().getApplication()).getReactHost();
}

public ReactInstanceManager getReactInstanceManager() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public ReactNativeHost getReactNativeHost() {

@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
Expand Down

0 comments on commit 043393d

Please sign in to comment.