Sort parameters in DefaultNewArchitectureEntryPoint (#35115)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/35115

When looking at the new entry point I've realized we have the dynamicLibraryName as first parameter.
As this API is not released yet, let's move it as last.

So users on Java can easily call DefaultNewArchitectureEntryPoint.load(true, true, true)
while now they will have to call DefaultNewArchitectureEntryPoint.load("...", true, true, true)

Users in Kotlin won't be affected by this.

Changelog:
[Internal] [Changed] - Sort parameters in DefaultNewArchitectureEntryPoint

Reviewed By: cipolleschi

Differential Revision: D40793370

fbshipit-source-id: 9dc1569d76a1479a738f8e0f41a4183d7c04538f
This commit is contained in:
Nicola Corti
2022-10-28 04:22:22 -07:00
committed by Facebook GitHub Bot
parent 089684ee56
commit 3dc7b37cf7
@@ -25,10 +25,10 @@ object DefaultNewArchitectureEntryPoint {
@JvmStatic
@JvmOverloads
fun load(
dynamicLibraryName: String = "appmodules",
turboModulesEnabled: Boolean = true,
fabricEnabled: Boolean = true,
concurrentReactEnabled: Boolean = true
concurrentReactEnabled: Boolean = true,
dynamicLibraryName: String = "appmodules",
) {
ReactFeatureFlags.useTurboModules = turboModulesEnabled
ReactFeatureFlags.enableFabricRenderer = fabricEnabled