mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Rename jSMainModulePath -> jsMainModulePath (#38908)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/38908 Rename jSMainModulePath -> jsMainModulePath changelog: [internal] internal Reviewed By: rshest Differential Revision: D48051753 fbshipit-source-id: af20a18ec6a01de7db6484b7a7a2e3b2b3353396
This commit is contained in:
committed by
Facebook GitHub Bot
parent
fff0cd11d4
commit
2e5b122f23
+1
-1
@@ -169,7 +169,7 @@ public class ReactHost implements ReactHostInterface {
|
||||
if (DEV) {
|
||||
mDevSupportManager =
|
||||
new BridgelessDevSupportManager(
|
||||
ReactHost.this, mContext, mReactHostDelegate.getJSMainModulePath());
|
||||
ReactHost.this, mContext, mReactHostDelegate.getJsMainModulePath());
|
||||
} else {
|
||||
mDevSupportManager = new DisabledDevSupportManager();
|
||||
}
|
||||
|
||||
+2
-2
@@ -27,7 +27,7 @@ interface ReactHostDelegate {
|
||||
* paths are relative to the root folder the packager is serving files from. Examples:
|
||||
* `index.android` or `subdirectory/index.android`
|
||||
*/
|
||||
val jSMainModulePath: String
|
||||
val jsMainModulePath: String
|
||||
|
||||
/**
|
||||
* Object that holds a native C++ references that allow host applications to install C++ objects
|
||||
@@ -64,7 +64,7 @@ interface ReactHostDelegate {
|
||||
|
||||
@UnstableReactNativeAPI
|
||||
class ReactHostDelegateBase(
|
||||
override val jSMainModulePath: String,
|
||||
override val jsMainModulePath: String,
|
||||
override val jSBundleLoader: JSBundleLoader,
|
||||
override val jSEngineInstance: JSEngineInstance,
|
||||
override val turboModuleManagerDelegateBuilder:
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ import com.facebook.react.turbomodule.core.TurboModuleManager
|
||||
@DoNotStrip
|
||||
@UnstableReactNativeAPI
|
||||
class DefaultReactHostDelegate(
|
||||
override val jSMainModulePath: String,
|
||||
override val jsMainModulePath: String,
|
||||
override val jSBundleLoader: JSBundleLoader,
|
||||
override val reactPackages: List<ReactPackage> = emptyList(),
|
||||
override val jSEngineInstance: JSEngineInstance = HermesInstance(),
|
||||
|
||||
+2
-2
@@ -38,11 +38,11 @@ class ReactHostDelegateTest {
|
||||
val jsMainModulePathMocked = "mockedJSMainModulePath"
|
||||
val delegate =
|
||||
DefaultReactHostDelegate(
|
||||
jSMainModulePath = jsMainModulePathMocked,
|
||||
jsMainModulePath = jsMainModulePathMocked,
|
||||
jSBundleLoader = jsBundleLoader,
|
||||
jSEngineInstance = hermesInstance,
|
||||
turboModuleManagerDelegateBuilder = turboModuleManagerDelegateBuilderMock)
|
||||
|
||||
assertThat(delegate.jSMainModulePath).isEqualTo(jsMainModulePathMocked)
|
||||
assertThat(delegate.jsMainModulePath).isEqualTo(jsMainModulePathMocked)
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ public class RNTesterReactHostDelegate implements ReactHostDelegate {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getJSMainModulePath() {
|
||||
public String getJsMainModulePath() {
|
||||
return "js/RNTesterApp.android";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user