diff --git a/packages/react-native/Libraries/AppDelegate/RCTJSRuntimeConfiguratorProtocol.h b/packages/react-native/Libraries/AppDelegate/RCTJSRuntimeConfiguratorProtocol.h index 16d22dca4e7..ca7f1a089d6 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTJSRuntimeConfiguratorProtocol.h +++ b/packages/react-native/Libraries/AppDelegate/RCTJSRuntimeConfiguratorProtocol.h @@ -5,13 +5,14 @@ * LICENSE file in the root directory of this source tree. */ -#import -#import - #pragma once NS_ASSUME_NONNULL_BEGIN +// Forward declarations for umbrella headers. +// In implementations, import `` to obtain the actual type. +typedef void *JSRuntimeFactoryRef; + @protocol RCTJSRuntimeConfiguratorProtocol - (JSRuntimeFactoryRef)createJSRuntimeFactory; diff --git a/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.mm b/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.mm index 1ed25b29ba4..17a3ca3d620 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.mm +++ b/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.mm @@ -32,6 +32,7 @@ #import #import #import +#import @implementation RCTRootViewFactoryConfiguration diff --git a/packages/react-native/ReactCommon/jsitooling/React-jsitooling.podspec b/packages/react-native/ReactCommon/jsitooling/React-jsitooling.podspec index ce29c9a8345..0b5bbdf3365 100644 --- a/packages/react-native/ReactCommon/jsitooling/React-jsitooling.podspec +++ b/packages/react-native/ReactCommon/jsitooling/React-jsitooling.podspec @@ -48,8 +48,11 @@ Pod::Spec.new do |s| s.header_mappings_dir = "./" end - s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => header_search_paths.join(" "), - "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard() } + s.pod_target_xcconfig = { + "HEADER_SEARCH_PATHS" => header_search_paths.join(" "), + "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(), + "DEFINES_MODULE" => "YES", + } s.dependency "React-cxxreact", version s.dependency "React-jsi", version diff --git a/packages/react-native/ReactCommon/jsitooling/react/runtime/JSRuntimeFactory.h b/packages/react-native/ReactCommon/jsitooling/react/runtime/JSRuntimeFactory.h index c60a46ab9bc..422dc9b871f 100644 --- a/packages/react-native/ReactCommon/jsitooling/react/runtime/JSRuntimeFactory.h +++ b/packages/react-native/ReactCommon/jsitooling/react/runtime/JSRuntimeFactory.h @@ -7,6 +7,8 @@ #pragma once +#ifdef __cplusplus + #include #include #include @@ -72,3 +74,5 @@ class JSIRuntimeHolder : public JSRuntime { }; } // namespace facebook::react + +#endif // __cplusplus