diff --git a/ios/RNIContextMenuButton/RNIContextMenuButton.h b/ios/RNIContextMenuButton/RNIContextMenuButton.h index 11ab525a..6b142bea 100644 --- a/ios/RNIContextMenuButton/RNIContextMenuButton.h +++ b/ios/RNIContextMenuButton/RNIContextMenuButton.h @@ -5,7 +5,11 @@ // Created by Dominic Go on 8/24/24. // +#if __has_include() #import +#else +#import +#endif #if RCT_NEW_ARCH_ENABLED #import diff --git a/ios/RNIContextMenuButton/RNIContextMenuButton.mm b/ios/RNIContextMenuButton/RNIContextMenuButton.mm index 574017c6..3d91baea 100644 --- a/ios/RNIContextMenuButton/RNIContextMenuButton.mm +++ b/ios/RNIContextMenuButton/RNIContextMenuButton.mm @@ -8,11 +8,17 @@ #import "RNIContextMenuButton.h" #import "../Swift.h" +#if __has_include() #import #import #import #import - +#else +#import +#import +#import +#import +#endif #if RCT_NEW_ARCH_ENABLED #include "RNIContextMenuButtonComponentDescriptor.h" diff --git a/ios/RNIContextMenuButton/RNIContextMenuButtonViewManager.mm b/ios/RNIContextMenuButton/RNIContextMenuButtonViewManager.mm index 68f966ff..4b0ec1b7 100644 --- a/ios/RNIContextMenuButton/RNIContextMenuButtonViewManager.mm +++ b/ios/RNIContextMenuButton/RNIContextMenuButtonViewManager.mm @@ -8,7 +8,11 @@ #import "RNIContextMenuButton.h" #import +#if __has_include() #import +#else +#import +#endif #import "RCTBridge.h" #import diff --git a/ios/RNIContextMenuView/RNIContextMenuView.h b/ios/RNIContextMenuView/RNIContextMenuView.h index 8524bf29..feb721a2 100644 --- a/ios/RNIContextMenuView/RNIContextMenuView.h +++ b/ios/RNIContextMenuView/RNIContextMenuView.h @@ -5,7 +5,11 @@ // Created by Dominic Go on 8/24/24. // +#if __has_include() #import +#else +#import +#endif #if RCT_NEW_ARCH_ENABLED #import diff --git a/ios/RNIContextMenuView/RNIContextMenuView.mm b/ios/RNIContextMenuView/RNIContextMenuView.mm index 574d3fe2..99d7f45d 100644 --- a/ios/RNIContextMenuView/RNIContextMenuView.mm +++ b/ios/RNIContextMenuView/RNIContextMenuView.mm @@ -8,17 +8,28 @@ #import "RNIContextMenuView.h" #import "../Swift.h" +#if __has_include() #import #import #import #import - +#else +#import +#import +#import +#import +#endif #if RCT_NEW_ARCH_ENABLED #include "RNIContextMenuViewComponentDescriptor.h" +#if __has_include() #include #include +#else +#include +#include +#endif #import #import diff --git a/ios/RNIContextMenuView/RNIContextMenuViewManager.mm b/ios/RNIContextMenuView/RNIContextMenuViewManager.mm index cb310202..e10fe025 100644 --- a/ios/RNIContextMenuView/RNIContextMenuViewManager.mm +++ b/ios/RNIContextMenuView/RNIContextMenuViewManager.mm @@ -8,7 +8,11 @@ #import "RNIContextMenuView.h" #import +#if __has_include() #import +#else +#import +#endif #import "RCTBridge.h" #import diff --git a/ios/Swift.h b/ios/Swift.h index 347c66cf..f9814ee4 100644 --- a/ios/Swift.h +++ b/ios/Swift.h @@ -10,6 +10,10 @@ // Otherwise, it's available only locally with double-quoted imports. #if __has_include() #import + +#elif __has_include() +#import + #else #import "react_native_ios_context_menu-Swift.h" #endif