From fbe6accbe1baa19db199f8ea85f44bfa1c7e3b59 Mon Sep 17 00:00:00 2001 From: Dominic Go Date: Mon, 16 Dec 2024 10:18:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AB=20Update:=20Imports=20to=20use=20`?= =?UTF-8?q?RNI=5FUTILITIES=5FHEADER`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/RNIModalSheetView/RNIModalSheetView.h | 7 ++---- ios/RNIModalSheetView/RNIModalSheetView.mm | 25 ++++++------------- .../RNIModalSheetViewComponentDescriptor.h | 4 ++- .../RNIModalSheetViewManager.mm | 9 +++---- .../RNIModalSheetViewShadowNode.h | 7 +++--- 5 files changed, 19 insertions(+), 33 deletions(-) diff --git a/ios/RNIModalSheetView/RNIModalSheetView.h b/ios/RNIModalSheetView/RNIModalSheetView.h index 2152715..536f3fd 100644 --- a/ios/RNIModalSheetView/RNIModalSheetView.h +++ b/ios/RNIModalSheetView/RNIModalSheetView.h @@ -5,11 +5,8 @@ // Created by Dominic Go on 6/6/24. // -#if __has_include() -#import -#else -#import -#endif +#import "RNIHeaderUtils.h" +#import RNI_UTILITIES_HEADER(RNIBaseView.h) #if RCT_NEW_ARCH_ENABLED #import diff --git a/ios/RNIModalSheetView/RNIModalSheetView.mm b/ios/RNIModalSheetView/RNIModalSheetView.mm index 9fd15fc..c73a432 100644 --- a/ios/RNIModalSheetView/RNIModalSheetView.mm +++ b/ios/RNIModalSheetView/RNIModalSheetView.mm @@ -6,30 +6,19 @@ // #import "RNIModalSheetView.h" +#import "RNIHeaderUtils.h" #import "../Swift.h" -#if __has_include() -#import -#import -#import -#import -#else -#import -#import -#import -#import -#endif +#import RNI_UTILITIES_HEADER(RNIBaseView.h) +#import RNI_UTILITIES_HEADER(RNIContentViewParentDelegate.h) +#import RNI_UTILITIES_HEADER(UIApplication+RNIHelpers.h) +#import RNI_UTILITIES_HEADER(RNIObjcUtils.h) #if RCT_NEW_ARCH_ENABLED #include "RNIModalSheetViewComponentDescriptor.h" -#if __has_include() -#include -#include -#else -#include -#include -#endif +#import RNI_UTILITIES_HEADER(RNIBaseViewState.h) +#import RNI_UTILITIES_HEADER(RNIBaseViewProps.h) #import #import diff --git a/ios/RNIModalSheetView/RNIModalSheetViewComponentDescriptor.h b/ios/RNIModalSheetView/RNIModalSheetViewComponentDescriptor.h index 5b6e388..251ddab 100644 --- a/ios/RNIModalSheetView/RNIModalSheetViewComponentDescriptor.h +++ b/ios/RNIModalSheetView/RNIModalSheetViewComponentDescriptor.h @@ -11,7 +11,9 @@ #include "RNIModalSheetViewShadowNode.h" #include "RNIBaseViewComponentDescriptor.h" -#include +#include "RNIHeaderUtils.h" +#import RNI_UTILITIES_HEADER(RNIBaseViewState.h) + #include diff --git a/ios/RNIModalSheetView/RNIModalSheetViewManager.mm b/ios/RNIModalSheetView/RNIModalSheetViewManager.mm index 340348f..223a998 100644 --- a/ios/RNIModalSheetView/RNIModalSheetViewManager.mm +++ b/ios/RNIModalSheetView/RNIModalSheetViewManager.mm @@ -6,18 +6,15 @@ // #import "RNIModalSheetView.h" +#import "RNIHeaderUtils.h" #import +#import RNI_UTILITIES_HEADER(RNIBaseViewUtils.h) + #import "RCTBridge.h" #import #import -#if __has_include() -#import -#else -#import -#endif - @interface RNIModalSheetViewManager : RCTViewManager @end diff --git a/ios/RNIModalSheetView/RNIModalSheetViewShadowNode.h b/ios/RNIModalSheetView/RNIModalSheetViewShadowNode.h index dfc7708..bb25644 100644 --- a/ios/RNIModalSheetView/RNIModalSheetViewShadowNode.h +++ b/ios/RNIModalSheetView/RNIModalSheetViewShadowNode.h @@ -8,9 +8,10 @@ #if __cplusplus #pragma once -#include -#include -#include +#include "RNIHeaderUtils.h" +#import RNI_UTILITIES_HEADER(RNIBaseViewShadowNode.h) +#import RNI_UTILITIES_HEADER(RNIBaseViewProps.h) +#import RNI_UTILITIES_HEADER(RNIBaseViewEventEmitter.h) #include #include