From 5830d80084533b698d44ca8a1f2ff545ee3bbed4 Mon Sep 17 00:00:00 2001 From: Christoph Purrer Date: Fri, 5 Jun 2026 16:23:09 -0700 Subject: [PATCH] Add missing RCT_REMOVE_LEGACY_COMPONENT_INTEROP guard to LegacyViewManagerInteropComponentDescriptor Summary: The iOS `LegacyViewManagerInteropComponentDescriptor.h` was missing the `RCT_REMOVE_LEGACY_COMPONENT_INTEROP` guard that the rest of the `legacyviewmanagerinterop` library already uses, so enabling that flag failed to compile. Add the guard for consistency. Changelog: [iOS][Fixed] - Add missing `RCT_REMOVE_LEGACY_COMPONENT_INTEROP` guard to `LegacyViewManagerInteropComponentDescriptor` Differential Revision: D107717474 --- .../LegacyViewManagerInteropComponentDescriptor.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/react-native/ReactCommon/react/renderer/components/legacyviewmanagerinterop/platform/ios/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.h b/packages/react-native/ReactCommon/react/renderer/components/legacyviewmanagerinterop/platform/ios/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.h index 953c5f8dceb5..ca36068592ea 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/legacyviewmanagerinterop/platform/ios/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.h +++ b/packages/react-native/ReactCommon/react/renderer/components/legacyviewmanagerinterop/platform/ios/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.h @@ -7,6 +7,8 @@ #pragma once +#ifndef RCT_REMOVE_LEGACY_COMPONENT_INTEROP + #include #include @@ -33,3 +35,5 @@ class LegacyViewManagerInteropComponentDescriptor final }; } // namespace facebook::react + +#endif // RCT_REMOVE_LEGACY_COMPONENT_INTEROP