diff --git a/packages/react-native/React/Tests/Text/RCTTextAttributesTest.mm b/packages/react-native/React/Tests/Text/RCTTextAttributesTest.mm index 227cd12beb43..820e0093e641 100644 --- a/packages/react-native/React/Tests/Text/RCTTextAttributesTest.mm +++ b/packages/react-native/React/Tests/Text/RCTTextAttributesTest.mm @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +#ifndef RCT_REMOVE_LEGACY_ARCH + #import #import @@ -47,3 +49,5 @@ - (void)testLowercase } @end + +#endif // RCT_REMOVE_LEGACY_ARCH diff --git a/packages/react-native/ReactCommon/cxxreact/tests/methodcall.cpp b/packages/react-native/ReactCommon/cxxreact/tests/methodcall.cpp index e418b384bce9..f5dd2324c8a4 100644 --- a/packages/react-native/ReactCommon/cxxreact/tests/methodcall.cpp +++ b/packages/react-native/ReactCommon/cxxreact/tests/methodcall.cpp @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +#ifndef RCT_REMOVE_LEGACY_ARCH + #include #include @@ -152,3 +154,5 @@ TEST(parseMethodCalls, ParseTwoCalls) { auto returnedCalls = parseMethodCalls(folly::parseJson(jsText)); EXPECT_EQ(2, returnedCalls.size()); } + +#endif // RCT_REMOVE_LEGACY_ARCH