diff --git a/Libraries/Text/RCTTextManager.m b/Libraries/Text/RCTTextManager.m index 0e66829e67aacf..0f47dfd2555f9d 100644 --- a/Libraries/Text/RCTTextManager.m +++ b/Libraries/Text/RCTTextManager.m @@ -9,7 +9,13 @@ #import "RCTTextManager.h" +//Internally we reference a separate library. See https://github.com/facebook/react-native/pull/9544 +#if __has_include() #import +#else +#import "CSSLayout.h" +#endif + #import "RCTAccessibilityManager.h" #import "RCTAssert.h" #import "RCTConvert.h" diff --git a/React.podspec b/React.podspec index 1162fa990f3d83..77b01c46a22bce 100644 --- a/React.podspec +++ b/React.podspec @@ -29,9 +29,8 @@ Pod::Spec.new do |s| s.preserve_paths = "cli.js", "Libraries/**/*.js", "lint", "linter.js", "node_modules", "package.json", "packager", "PATENTS", "react-native-cli" s.subspec 'Core' do |ss| - ss.dependency 'React/CSSLayout' ss.source_files = "React/**/*.{c,h,m,mm,S}" - ss.exclude_files = "**/__tests__/*", "IntegrationTests/*", "React/CSSLayout/*" + ss.exclude_files = "**/__tests__/*", "IntegrationTests/*" ss.frameworks = "JavaScriptCore" ss.libraries = "stdc++" ss.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => "c++14" } @@ -43,11 +42,6 @@ Pod::Spec.new do |s| ss.preserve_paths = "Libraries/ART/**/*.js" end - s.subspec 'CSSLayout' do |ss| - ss.source_files = "React/CSSLayout/**/*.{c,h}" - ss.header_mappings_dir = "React" - end - s.subspec 'RCTActionSheet' do |ss| ss.dependency 'React/Core' ss.source_files = "Libraries/ActionSheetIOS/*.{h,m}" diff --git a/React/Base/RCTConvert.h b/React/Base/RCTConvert.h index f87aa251f8d2e8..1dc2043283124d 100644 --- a/React/Base/RCTConvert.h +++ b/React/Base/RCTConvert.h @@ -10,7 +10,13 @@ #import #import +//Internally we reference a separate library. See https://github.com/facebook/react-native/pull/9544 +#if __has_include() #import +#else +#import "CSSLayout.h" +#endif + #import "RCTAnimationType.h" #import "RCTBorderStyle.h" #import "RCTTextDecorationLineType.h" diff --git a/React/Modules/RCTUIManager.m b/React/Modules/RCTUIManager.m index f27c76d77e557d..e8d91ae0cf1c1e 100644 --- a/React/Modules/RCTUIManager.m +++ b/React/Modules/RCTUIManager.m @@ -11,7 +11,13 @@ #import +//Internally we reference a separate library. See https://github.com/facebook/react-native/pull/9544 +#if __has_include() #import +#else +#import "CSSLayout.h" +#endif + #import "RCTAccessibilityManager.h" #import "RCTAnimationType.h" #import "RCTAssert.h" diff --git a/React/Views/RCTShadowView.h b/React/Views/RCTShadowView.h index 18ed4f40e9dff7..c127586a5e4ef6 100644 --- a/React/Views/RCTShadowView.h +++ b/React/Views/RCTShadowView.h @@ -9,7 +9,13 @@ #import +//Internally we reference a separate library. See https://github.com/facebook/react-native/pull/9544 +#if __has_include() #import +#else +#import "CSSLayout.h" +#endif + #import "RCTComponent.h" #import "RCTRootView.h"