diff --git a/ios/RNIModalSheetView/RNIModalSheetView.h b/ios/RNIModalSheetView/RNIModalSheetView.h index 9dfd6b6..2152715 100644 --- a/ios/RNIModalSheetView/RNIModalSheetView.h +++ b/ios/RNIModalSheetView/RNIModalSheetView.h @@ -5,7 +5,11 @@ // Created by Dominic Go on 6/6/24. // +#if __has_include() #import +#else +#import +#endif #if RCT_NEW_ARCH_ENABLED #import diff --git a/ios/RNIModalSheetView/RNIModalSheetView.mm b/ios/RNIModalSheetView/RNIModalSheetView.mm index 188fbba..9fd15fc 100644 --- a/ios/RNIModalSheetView/RNIModalSheetView.mm +++ b/ios/RNIModalSheetView/RNIModalSheetView.mm @@ -6,19 +6,30 @@ // #import "RNIModalSheetView.h" - #import "../Swift.h" + +#if __has_include() #import #import - #import #import +#else +#import +#import +#import +#import +#endif #if RCT_NEW_ARCH_ENABLED #include "RNIModalSheetViewComponentDescriptor.h" +#if __has_include() #include #include +#else +#include +#include +#endif #import #import diff --git a/ios/RNIModalSheetView/RNIModalSheetViewManager.mm b/ios/RNIModalSheetView/RNIModalSheetViewManager.mm index 8030663..340348f 100644 --- a/ios/RNIModalSheetView/RNIModalSheetViewManager.mm +++ b/ios/RNIModalSheetView/RNIModalSheetViewManager.mm @@ -12,7 +12,11 @@ #import #import +#if __has_include() #import +#else +#import +#endif @interface RNIModalSheetViewManager : RCTViewManager diff --git a/ios/Swift.h b/ios/Swift.h index dbf9158..059d5f2 100644 --- a/ios/Swift.h +++ b/ios/Swift.h @@ -10,11 +10,14 @@ // Otherwise, it's available only locally with double-quoted imports. #if __has_include() #import + +#elif __has_include() +#import + #else #import "react_native_ios_modal-Swift.h" #endif - // #import // #import "" // #import