Add ReactNativeConfig.DEFAULT_CONFIG as default parameter for ReactNativeConfig (#37560)

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

Add ReactNativeConfig.DEFAULT_CONFIG as default parameter for ReactNativeConfig

changelog: [internal] internal

Reviewed By: cortinico, philIip

Differential Revision: D45662330

fbshipit-source-id: 9feccc2c75cb89c6782a235efe9b880c9b08ad89
This commit is contained in:
David Vacca 2023-05-25 10:29:01 -07:00 коммит произвёл Facebook GitHub Bot
Родитель ee1180dfe0
Коммит 8ae084675b
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -35,6 +35,7 @@ interface ReactHostDelegate {
fun handleInstanceException(e: Exception)
// TODO: remove TurboModuleManager as a parameter
fun getReactNativeConfig(turboModuleManager: TurboModuleManager): ReactNativeConfig
@UnstableReactNativeAPI
@ -45,7 +46,7 @@ interface ReactHostDelegate {
private val jsBundleLoader: JSBundleLoader,
private val turboModuleManagerDelegate: TurboModuleManagerDelegate,
private val jsEngineInstance: JSEngineInstance,
private val reactNativeConfig: ReactNativeConfig,
private val reactNativeConfig: ReactNativeConfig = ReactNativeConfig.DEFAULT_CONFIG,
private val exceptionHandler: (Exception) -> Unit = {}
) : ReactHostDelegate {
override fun getJSBundleLoader(context: Context) = jsBundleLoader