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:
David Vacca
2023-08-09 23:30:01 -07:00
committed by Facebook GitHub Bot
parent fff0cd11d4
commit 2e5b122f23
5 changed files with 7 additions and 7 deletions
@@ -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();
}
@@ -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:
@@ -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(),
@@ -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)
}
}
@@ -57,7 +57,7 @@ public class RNTesterReactHostDelegate implements ReactHostDelegate {
}
@Override
public String getJSMainModulePath() {
public String getJsMainModulePath() {
return "js/RNTesterApp.android";
}