diff --git a/packages/react-native/ReactCommon/react/bridgeless/platform/ios/Core/RCTHostCreationHelpers.h b/packages/react-native/ReactCommon/react/bridgeless/platform/ios/Core/RCTHostCreationHelpers.h new file mode 100644 index 00000000000000..5006e14ef0c63a --- /dev/null +++ b/packages/react-native/ReactCommon/react/bridgeless/platform/ios/Core/RCTHostCreationHelpers.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +#import "RCTHost.h" + +@class RCTHost; + +@protocol RCTHostDelegate; +@protocol RCTTurboModuleManagerDelegate; + +NS_ASSUME_NONNULL_BEGIN + +RCT_EXTERN_C_BEGIN + +RCTHost *RCTHostCreateDefault( + id hostDelegate, + id turboModuleManagerDelegate, + RCTHostJSEngineProvider jsEngineProvider); + +RCT_EXTERN_C_END + +NS_ASSUME_NONNULL_END diff --git a/packages/react-native/ReactCommon/react/bridgeless/platform/ios/Core/RCTHostCreationHelpers.mm b/packages/react-native/ReactCommon/react/bridgeless/platform/ios/Core/RCTHostCreationHelpers.mm new file mode 100644 index 00000000000000..31d1af728d2691 --- /dev/null +++ b/packages/react-native/ReactCommon/react/bridgeless/platform/ios/Core/RCTHostCreationHelpers.mm @@ -0,0 +1,19 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTHostCreationHelpers.h" + +RCTHost *RCTHostCreateDefault( + id hostDelegate, + id turboModuleManagerDelegate, + RCTHostJSEngineProvider jsEngineProvider) +{ + return [[RCTHost alloc] initWithHostDelegate:hostDelegate + turboModuleManagerDelegate:turboModuleManagerDelegate + bindingsInstallFunc:nullptr + jsEngineProvider:jsEngineProvider]; +}