mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
c62d174989
commit
27b631e5b0
+1
-1
@@ -88,7 +88,7 @@ public class ReactActivityDelegate {
|
||||
}
|
||||
|
||||
public ReactHost getReactHost() {
|
||||
return ((ReactApplication) getPlainActivity().getApplication()).getReactHostInterface();
|
||||
return ((ReactApplication) getPlainActivity().getApplication()).getReactHost();
|
||||
}
|
||||
|
||||
public ReactInstanceManager getReactInstanceManager() {
|
||||
|
||||
+3
-3
@@ -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
|
||||
}
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user