diff --git a/ios/RNIContextMenuButton/RNIContextMenuButton.mm b/ios/RNIContextMenuButton/RNIContextMenuButton.mm index 3d91baea..08707917 100644 --- a/ios/RNIContextMenuButton/RNIContextMenuButton.mm +++ b/ios/RNIContextMenuButton/RNIContextMenuButton.mm @@ -23,8 +23,13 @@ #if RCT_NEW_ARCH_ENABLED #include "RNIContextMenuButtonComponentDescriptor.h" +#if __has_include() #include #include +#else +#include +#include +#endif #import #import diff --git a/ios/RNIContextMenuButton/RNIContextMenuButtonComponentDescriptor.h b/ios/RNIContextMenuButton/RNIContextMenuButtonComponentDescriptor.h index 0fe922b9..7cf637e8 100644 --- a/ios/RNIContextMenuButton/RNIContextMenuButtonComponentDescriptor.h +++ b/ios/RNIContextMenuButton/RNIContextMenuButtonComponentDescriptor.h @@ -11,7 +11,11 @@ #include "RNIContextMenuButtonShadowNode.h" #include "RNIBaseViewComponentDescriptor.h" +#if __has_include() #include +#else +#include +#endif #include diff --git a/ios/RNIContextMenuButton/RNIContextMenuButtonShadowNode.h b/ios/RNIContextMenuButton/RNIContextMenuButtonShadowNode.h index ac1b293d..d9ffbb6f 100644 --- a/ios/RNIContextMenuButton/RNIContextMenuButtonShadowNode.h +++ b/ios/RNIContextMenuButton/RNIContextMenuButtonShadowNode.h @@ -8,9 +8,15 @@ #if __cplusplus #pragma once +#if __has_include() #include #include #include +#else +#include +#include +#include +#endif #include #include diff --git a/ios/RNIContextMenuView/RNIContextMenuViewComponentDescriptor.h b/ios/RNIContextMenuView/RNIContextMenuViewComponentDescriptor.h index 2e30bbba..5aa27cd6 100644 --- a/ios/RNIContextMenuView/RNIContextMenuViewComponentDescriptor.h +++ b/ios/RNIContextMenuView/RNIContextMenuViewComponentDescriptor.h @@ -8,11 +8,17 @@ #if __cplusplus #pragma once + #include "RNIContextMenuViewShadowNode.h" #include "RNIBaseViewComponentDescriptor.h" +#if __has_include() #include #include +#else +#include +#include +#endif #include diff --git a/ios/RNIContextMenuView/RNIContextMenuViewShadowNode.h b/ios/RNIContextMenuView/RNIContextMenuViewShadowNode.h index a72e1fcd..d0a0106f 100644 --- a/ios/RNIContextMenuView/RNIContextMenuViewShadowNode.h +++ b/ios/RNIContextMenuView/RNIContextMenuViewShadowNode.h @@ -8,9 +8,15 @@ #if __cplusplus #pragma once +#if __has_include() #include #include #include +#else +#include +#include +#include +#endif #include #include