From 451f9d996ae822d71411531c66bde63a0ebc40d1 Mon Sep 17 00:00:00 2001 From: Konrad Michalik Date: Wed, 26 Nov 2025 11:02:07 +0100 Subject: [PATCH] Add missing #pragma once in header files --- cpp/RNScreensTurboModule.h | 2 ++ ios/RCTConvert+RNScreens.h | 2 ++ ios/RCTImageComponentView+RNSScreenStackHeaderConfig.h | 2 ++ ios/RNSBarButtonItem.h | 2 ++ ios/RNSConvert.h | 2 ++ ios/RNSEnums.h | 2 ++ ios/RNSFullWindowOverlay.h | 2 ++ ios/RNSInvalidatedComponentsRegistry.h | 2 ++ ios/RNSModalScreen.h | 2 ++ ios/RNSModule.h | 1 + ios/RNSOrientationProviding.h | 2 ++ ios/RNSPercentDrivenInteractiveTransition.h | 2 ++ ios/RNSScreen.h | 2 ++ ios/RNSScreenContainer.h | 2 ++ ios/RNSScreenContentWrapper.h | 2 ++ ios/RNSScreenFooter.h | 2 ++ ios/RNSScreenNavigationContainer.h | 2 ++ ios/RNSScreenStack.h | 2 ++ ios/RNSScreenStackHeaderConfig.h | 2 ++ ios/RNSScreenStackHeaderSubview.h | 1 + ios/RNSScreenWindowTraits.h | 2 ++ ios/RNSScrollViewBehaviorOverriding.h | 2 ++ ios/RNSSearchBar.h | 2 ++ ios/RNSViewControllerInvalidating.h | 2 ++ ios/RNSViewControllerInvalidator.h | 2 ++ ios/UIScrollView+RNScreens.h | 2 ++ ios/UIViewController+RNScreens.h | 2 ++ ios/UIWindow+RNScreens.h | 2 ++ ios/bottom-tabs/RCTConvert+RNSBottomTabs.h | 2 ++ ios/bottom-tabs/RNSBottomTabsSpecialEffectsSupporting.h | 2 ++ ios/bottom-tabs/RNSTabBarAppearanceCoordinator.h | 2 ++ ios/bottom-tabs/accessory/RNSBottomAccessoryHelper.h | 2 ++ ios/bottom-tabs/accessory/RNSBottomTabsAccessoryComponentView.h | 2 ++ .../accessory/RNSBottomTabsAccessoryContentComponentView.h | 2 ++ ios/bottom-tabs/accessory/RNSBottomTabsAccessoryEventEmitter.h | 2 ++ .../accessory/RNSBottomTabsAccessoryShadowStateProxy.h | 2 ++ .../extensions/RNSBottomTabsHostComponentView+RNSImageLoader.h | 2 ++ ios/bottom-tabs/host/RNSBottomTabsHostComponentView.h | 2 ++ ios/bottom-tabs/host/RNSBottomTabsHostEventEmitter.h | 2 ++ ios/bottom-tabs/host/RNSTabBarController.h | 2 ++ ios/bottom-tabs/host/RNSTabBarControllerDelegate.h | 2 ++ ios/bottom-tabs/screen/RNSBottomTabsScreenComponentView.h | 2 ++ .../screen/RNSBottomTabsScreenComponentViewManager.h | 2 ++ ios/bottom-tabs/screen/RNSBottomTabsScreenEventEmitter.h | 2 ++ ios/bottom-tabs/screen/RNSTabsScreenViewController.h | 2 ++ ios/bridging/RNSReactBaseView.h | 2 ++ ios/events/RNSHeaderHeightChangeEvent.h | 2 ++ ios/events/RNSScreenViewEvent.h | 2 ++ ios/gamma/split-view/RNSSplitViewHostComponentEventEmitter.h | 2 ++ ios/gamma/split-view/RNSSplitViewHostComponentView.h | 2 ++ ios/gamma/split-view/RNSSplitViewScreenComponentEventEmitter.h | 2 ++ ios/gamma/split-view/RNSSplitViewScreenComponentView.h | 2 ++ ios/gamma/split-view/RNSSplitViewScreenShadowStateProxy.h | 2 ++ ios/gamma/stack/RNSScreenStackHostComponentView.h | 2 ++ ios/gamma/stack/RNSStackScreenComponentEventEmitter.h | 2 ++ ios/gamma/stack/RNSStackScreenComponentView.h | 2 ++ ios/helpers/image/RNSImageLoadingHelper.h | 2 ++ ios/helpers/scroll-view/RNSContentScrollViewProviding.h | 2 ++ ios/helpers/scroll-view/RNSScrollEdgeEffectApplicator.h | 2 ++ ios/helpers/scroll-view/RNSScrollViewFinder.h | 2 ++ ios/helpers/scroll-view/RNSScrollViewHelper.h | 2 ++ ios/integrations/RNSDismissibleModalProtocol.h | 2 ++ ios/safe-area/RNSSafeAreaProviding.h | 2 ++ ios/safe-area/RNSSafeAreaViewComponentView.h | 2 ++ ios/safe-area/paper/RNSSafeAreaViewEdges.h | 2 ++ ios/safe-area/paper/RNSSafeAreaViewLocalData.h | 2 ++ ios/safe-area/paper/RNSSafeAreaViewManager.h | 2 ++ ios/safe-area/paper/RNSSafeAreaViewShadowView.h | 2 ++ ios/stubs/RNSGammaStubs.h | 2 ++ ios/utils/NSString+RNSUtility.h | 2 ++ ios/utils/RCTSurfaceTouchHandler+RNSUtility.h | 2 ++ ios/utils/RCTTouchHandler+RNSUtility.h | 2 ++ ios/utils/RNSBackBarButtonItem.h | 2 ++ ios/utils/RNSLog.h | 2 ++ ios/utils/UINavigationBar+RNSUtility.h | 2 ++ ios/utils/UIView+RNSUtility.h | 2 ++ 76 files changed, 150 insertions(+) diff --git a/cpp/RNScreensTurboModule.h b/cpp/RNScreensTurboModule.h index 980f67918c..61a77c6edf 100644 --- a/cpp/RNScreensTurboModule.h +++ b/cpp/RNScreensTurboModule.h @@ -1,3 +1,5 @@ +#pragma once + // Needed on Paper only to hide the files from Swift build process #if defined(__cplusplus) diff --git a/ios/RCTConvert+RNScreens.h b/ios/RCTConvert+RNScreens.h index 90e64e1399..8a7fa141a0 100644 --- a/ios/RCTConvert+RNScreens.h +++ b/ios/RCTConvert+RNScreens.h @@ -1,3 +1,5 @@ +#pragma once + #if !RCT_NEW_ARCH_ENABLED #import diff --git a/ios/RCTImageComponentView+RNSScreenStackHeaderConfig.h b/ios/RCTImageComponentView+RNSScreenStackHeaderConfig.h index ca75f921ef..56b36acb29 100644 --- a/ios/RCTImageComponentView+RNSScreenStackHeaderConfig.h +++ b/ios/RCTImageComponentView+RNSScreenStackHeaderConfig.h @@ -1,3 +1,5 @@ +#pragma once + #ifdef RCT_NEW_ARCH_ENABLED #include diff --git a/ios/RNSBarButtonItem.h b/ios/RNSBarButtonItem.h index 394e03a92b..ea5325ea8d 100644 --- a/ios/RNSBarButtonItem.h +++ b/ios/RNSBarButtonItem.h @@ -1,3 +1,5 @@ +#pragma once + #import #import diff --git a/ios/RNSConvert.h b/ios/RNSConvert.h index 0536949c9e..7d6e35462f 100644 --- a/ios/RNSConvert.h +++ b/ios/RNSConvert.h @@ -1,3 +1,5 @@ +#pragma once + #import #ifdef RCT_NEW_ARCH_ENABLED #import diff --git a/ios/RNSEnums.h b/ios/RNSEnums.h index 02d7cc227d..8b188e2a42 100644 --- a/ios/RNSEnums.h +++ b/ios/RNSEnums.h @@ -1,3 +1,5 @@ +#pragma once + typedef NS_ENUM(NSInteger, RNSScreenStackPresentation) { RNSScreenStackPresentationPush, RNSScreenStackPresentationModal, diff --git a/ios/RNSFullWindowOverlay.h b/ios/RNSFullWindowOverlay.h index 938a12899b..e49d250fdf 100644 --- a/ios/RNSFullWindowOverlay.h +++ b/ios/RNSFullWindowOverlay.h @@ -1,3 +1,5 @@ +#pragma once + #import #ifdef RCT_NEW_ARCH_ENABLED diff --git a/ios/RNSInvalidatedComponentsRegistry.h b/ios/RNSInvalidatedComponentsRegistry.h index 168241d705..a4fd3689a0 100644 --- a/ios/RNSInvalidatedComponentsRegistry.h +++ b/ios/RNSInvalidatedComponentsRegistry.h @@ -1,3 +1,5 @@ +#pragma once + #ifdef RCT_NEW_ARCH_ENABLED #import diff --git a/ios/RNSModalScreen.h b/ios/RNSModalScreen.h index d0a4603fb6..72b5e0b550 100644 --- a/ios/RNSModalScreen.h +++ b/ios/RNSModalScreen.h @@ -1,3 +1,5 @@ +#pragma once + #import "RNSScreen.h" @interface RNSModalScreen : RNSScreenView diff --git a/ios/RNSModule.h b/ios/RNSModule.h index bdd4fe30f9..3565eab01b 100644 --- a/ios/RNSModule.h +++ b/ios/RNSModule.h @@ -1,3 +1,4 @@ +#pragma once #ifdef RCT_NEW_ARCH_ENABLED #import diff --git a/ios/RNSOrientationProviding.h b/ios/RNSOrientationProviding.h index 1d68898fac..568806ca51 100644 --- a/ios/RNSOrientationProviding.h +++ b/ios/RNSOrientationProviding.h @@ -1,3 +1,5 @@ +#pragma once + #import "RNSEnums.h" NS_ASSUME_NONNULL_BEGIN diff --git a/ios/RNSPercentDrivenInteractiveTransition.h b/ios/RNSPercentDrivenInteractiveTransition.h index e47401e450..f993cc73b0 100644 --- a/ios/RNSPercentDrivenInteractiveTransition.h +++ b/ios/RNSPercentDrivenInteractiveTransition.h @@ -1,3 +1,5 @@ +#pragma once + #import #import "RNSScreenStackAnimator.h" diff --git a/ios/RNSScreen.h b/ios/RNSScreen.h index fb33d02dd5..d8c2b13ee1 100644 --- a/ios/RNSScreen.h +++ b/ios/RNSScreen.h @@ -1,3 +1,5 @@ +#pragma once + #import #import diff --git a/ios/RNSScreenContainer.h b/ios/RNSScreenContainer.h index 998aa978ed..51ed738045 100644 --- a/ios/RNSScreenContainer.h +++ b/ios/RNSScreenContainer.h @@ -1,3 +1,5 @@ +#pragma once + #ifdef RCT_NEW_ARCH_ENABLED #import #else diff --git a/ios/RNSScreenContentWrapper.h b/ios/RNSScreenContentWrapper.h index 94d1886744..c864e1df46 100644 --- a/ios/RNSScreenContentWrapper.h +++ b/ios/RNSScreenContentWrapper.h @@ -1,3 +1,5 @@ +#pragma once + #import #import #import "RNSDefines.h" diff --git a/ios/RNSScreenFooter.h b/ios/RNSScreenFooter.h index 828b032fb5..ac77056d94 100644 --- a/ios/RNSScreenFooter.h +++ b/ios/RNSScreenFooter.h @@ -1,3 +1,5 @@ +#pragma once + #import #import diff --git a/ios/RNSScreenNavigationContainer.h b/ios/RNSScreenNavigationContainer.h index defd0d53e3..2979dae3d4 100644 --- a/ios/RNSScreenNavigationContainer.h +++ b/ios/RNSScreenNavigationContainer.h @@ -1,3 +1,5 @@ +#pragma once + #import #import "RNSScreenContainer.h" diff --git a/ios/RNSScreenStack.h b/ios/RNSScreenStack.h index 7a8be90b40..13f7f6a435 100644 --- a/ios/RNSScreenStack.h +++ b/ios/RNSScreenStack.h @@ -1,3 +1,5 @@ +#pragma once + #ifdef RCT_NEW_ARCH_ENABLED #import #else diff --git a/ios/RNSScreenStackHeaderConfig.h b/ios/RNSScreenStackHeaderConfig.h index e7fbaab2d2..d5ea95f556 100644 --- a/ios/RNSScreenStackHeaderConfig.h +++ b/ios/RNSScreenStackHeaderConfig.h @@ -1,3 +1,5 @@ +#pragma once + #ifdef RCT_NEW_ARCH_ENABLED #import #else diff --git a/ios/RNSScreenStackHeaderSubview.h b/ios/RNSScreenStackHeaderSubview.h index 233fd6afb1..fc1ed17e71 100644 --- a/ios/RNSScreenStackHeaderSubview.h +++ b/ios/RNSScreenStackHeaderSubview.h @@ -1,3 +1,4 @@ +#pragma once #ifdef RCT_NEW_ARCH_ENABLED #import diff --git a/ios/RNSScreenWindowTraits.h b/ios/RNSScreenWindowTraits.h index 0665bdce6e..276edfba63 100644 --- a/ios/RNSScreenWindowTraits.h +++ b/ios/RNSScreenWindowTraits.h @@ -1,3 +1,5 @@ +#pragma once + #import "RNSScreen.h" @interface RNSScreenWindowTraits : NSObject diff --git a/ios/RNSScrollViewBehaviorOverriding.h b/ios/RNSScrollViewBehaviorOverriding.h index e9aba08d51..94fe42ec2b 100644 --- a/ios/RNSScrollViewBehaviorOverriding.h +++ b/ios/RNSScrollViewBehaviorOverriding.h @@ -1,3 +1,5 @@ +#pragma once + #include NS_ASSUME_NONNULL_BEGIN diff --git a/ios/RNSSearchBar.h b/ios/RNSSearchBar.h index a9f23b06e7..ec72bcfde0 100644 --- a/ios/RNSSearchBar.h +++ b/ios/RNSSearchBar.h @@ -1,3 +1,5 @@ +#pragma once + #import #ifdef RCT_NEW_ARCH_ENABLED diff --git a/ios/RNSViewControllerInvalidating.h b/ios/RNSViewControllerInvalidating.h index 980a95588a..2bd741037f 100644 --- a/ios/RNSViewControllerInvalidating.h +++ b/ios/RNSViewControllerInvalidating.h @@ -1,3 +1,5 @@ +#pragma once + #ifdef RCT_NEW_ARCH_ENABLED #include diff --git a/ios/RNSViewControllerInvalidator.h b/ios/RNSViewControllerInvalidator.h index ffa859cce9..d57e7d9425 100644 --- a/ios/RNSViewControllerInvalidator.h +++ b/ios/RNSViewControllerInvalidator.h @@ -1,3 +1,5 @@ +#pragma once + #ifdef RCT_NEW_ARCH_ENABLED #import diff --git a/ios/UIScrollView+RNScreens.h b/ios/UIScrollView+RNScreens.h index 24e16c5a0a..6a481fb4e1 100644 --- a/ios/UIScrollView+RNScreens.h +++ b/ios/UIScrollView+RNScreens.h @@ -1,3 +1,5 @@ +#pragma once + #import NS_ASSUME_NONNULL_BEGIN diff --git a/ios/UIViewController+RNScreens.h b/ios/UIViewController+RNScreens.h index 4c1c2d0741..ce3a4d3099 100644 --- a/ios/UIViewController+RNScreens.h +++ b/ios/UIViewController+RNScreens.h @@ -1,3 +1,5 @@ +#pragma once + #import NS_ASSUME_NONNULL_BEGIN diff --git a/ios/UIWindow+RNScreens.h b/ios/UIWindow+RNScreens.h index 77484b7949..d0015ea735 100644 --- a/ios/UIWindow+RNScreens.h +++ b/ios/UIWindow+RNScreens.h @@ -1,3 +1,5 @@ +#pragma once + #import NS_ASSUME_NONNULL_BEGIN diff --git a/ios/bottom-tabs/RCTConvert+RNSBottomTabs.h b/ios/bottom-tabs/RCTConvert+RNSBottomTabs.h index b2c100e709..bb32ded3fd 100644 --- a/ios/bottom-tabs/RCTConvert+RNSBottomTabs.h +++ b/ios/bottom-tabs/RCTConvert+RNSBottomTabs.h @@ -1,3 +1,5 @@ +#pragma once + #import #import diff --git a/ios/bottom-tabs/RNSBottomTabsSpecialEffectsSupporting.h b/ios/bottom-tabs/RNSBottomTabsSpecialEffectsSupporting.h index 705a7624b0..6e9959f4ea 100644 --- a/ios/bottom-tabs/RNSBottomTabsSpecialEffectsSupporting.h +++ b/ios/bottom-tabs/RNSBottomTabsSpecialEffectsSupporting.h @@ -1,3 +1,5 @@ +#pragma once + #import NS_ASSUME_NONNULL_BEGIN diff --git a/ios/bottom-tabs/RNSTabBarAppearanceCoordinator.h b/ios/bottom-tabs/RNSTabBarAppearanceCoordinator.h index 519c800d0a..4404481bb4 100644 --- a/ios/bottom-tabs/RNSTabBarAppearanceCoordinator.h +++ b/ios/bottom-tabs/RNSTabBarAppearanceCoordinator.h @@ -1,3 +1,5 @@ +#pragma once + #import #import "RNSBottomTabsHostComponentView.h" #import "RNSTabsScreenViewController.h" diff --git a/ios/bottom-tabs/accessory/RNSBottomAccessoryHelper.h b/ios/bottom-tabs/accessory/RNSBottomAccessoryHelper.h index aeacc32a87..1fc7b4469d 100644 --- a/ios/bottom-tabs/accessory/RNSBottomAccessoryHelper.h +++ b/ios/bottom-tabs/accessory/RNSBottomAccessoryHelper.h @@ -1,3 +1,5 @@ +#pragma once + #import #if RNS_BOTTOM_ACCESSORY_AVAILABLE diff --git a/ios/bottom-tabs/accessory/RNSBottomTabsAccessoryComponentView.h b/ios/bottom-tabs/accessory/RNSBottomTabsAccessoryComponentView.h index bf59ee12da..862ae4c32a 100644 --- a/ios/bottom-tabs/accessory/RNSBottomTabsAccessoryComponentView.h +++ b/ios/bottom-tabs/accessory/RNSBottomTabsAccessoryComponentView.h @@ -1,3 +1,5 @@ +#pragma once + #import "RNSBottomTabsAccessoryEventEmitter.h" #import "RNSBottomTabsHostComponentView.h" #import "RNSReactBaseView.h" diff --git a/ios/bottom-tabs/accessory/RNSBottomTabsAccessoryContentComponentView.h b/ios/bottom-tabs/accessory/RNSBottomTabsAccessoryContentComponentView.h index 1fa4bd0be5..65d850f6ef 100644 --- a/ios/bottom-tabs/accessory/RNSBottomTabsAccessoryContentComponentView.h +++ b/ios/bottom-tabs/accessory/RNSBottomTabsAccessoryContentComponentView.h @@ -1,3 +1,5 @@ +#pragma once + #import "RNSDefines.h" #import "RNSEnums.h" #import "RNSReactBaseView.h" diff --git a/ios/bottom-tabs/accessory/RNSBottomTabsAccessoryEventEmitter.h b/ios/bottom-tabs/accessory/RNSBottomTabsAccessoryEventEmitter.h index 00537ddf90..ee4de44bcb 100644 --- a/ios/bottom-tabs/accessory/RNSBottomTabsAccessoryEventEmitter.h +++ b/ios/bottom-tabs/accessory/RNSBottomTabsAccessoryEventEmitter.h @@ -1,3 +1,5 @@ +#pragma once + #import #if RNS_BOTTOM_ACCESSORY_AVAILABLE diff --git a/ios/bottom-tabs/accessory/RNSBottomTabsAccessoryShadowStateProxy.h b/ios/bottom-tabs/accessory/RNSBottomTabsAccessoryShadowStateProxy.h index 442c9ee0c4..1a123452a8 100644 --- a/ios/bottom-tabs/accessory/RNSBottomTabsAccessoryShadowStateProxy.h +++ b/ios/bottom-tabs/accessory/RNSBottomTabsAccessoryShadowStateProxy.h @@ -1,3 +1,5 @@ +#pragma once + #import "RNSBottomAccessoryHelper.h" #if RNS_BOTTOM_ACCESSORY_AVAILABLE diff --git a/ios/bottom-tabs/extensions/RNSBottomTabsHostComponentView+RNSImageLoader.h b/ios/bottom-tabs/extensions/RNSBottomTabsHostComponentView+RNSImageLoader.h index 7bf83e478d..70e406c316 100644 --- a/ios/bottom-tabs/extensions/RNSBottomTabsHostComponentView+RNSImageLoader.h +++ b/ios/bottom-tabs/extensions/RNSBottomTabsHostComponentView+RNSImageLoader.h @@ -1,3 +1,5 @@ +#pragma once + #import "RNSBottomTabsHostComponentView.h" #if defined(__cplusplus) && RCT_NEW_ARCH_ENABLED diff --git a/ios/bottom-tabs/host/RNSBottomTabsHostComponentView.h b/ios/bottom-tabs/host/RNSBottomTabsHostComponentView.h index 2a0b30eda8..c633d690fb 100644 --- a/ios/bottom-tabs/host/RNSBottomTabsHostComponentView.h +++ b/ios/bottom-tabs/host/RNSBottomTabsHostComponentView.h @@ -1,3 +1,5 @@ +#pragma once + #import "RNSBottomTabsHostComponentViewManager.h" #import "RNSBottomTabsHostEventEmitter.h" #import "RNSDefines.h" diff --git a/ios/bottom-tabs/host/RNSBottomTabsHostEventEmitter.h b/ios/bottom-tabs/host/RNSBottomTabsHostEventEmitter.h index 8aa4c35dfb..b0f49f9bd4 100644 --- a/ios/bottom-tabs/host/RNSBottomTabsHostEventEmitter.h +++ b/ios/bottom-tabs/host/RNSBottomTabsHostEventEmitter.h @@ -1,3 +1,5 @@ +#pragma once + #import // Hide C++ symbols from C compiler used when building Swift module diff --git a/ios/bottom-tabs/host/RNSTabBarController.h b/ios/bottom-tabs/host/RNSTabBarController.h index 2db7e63803..a867c81c0d 100644 --- a/ios/bottom-tabs/host/RNSTabBarController.h +++ b/ios/bottom-tabs/host/RNSTabBarController.h @@ -1,3 +1,5 @@ +#pragma once + #import #import "RNSTabBarAppearanceCoordinator.h" #import "RNSTabsScreenViewController.h" diff --git a/ios/bottom-tabs/host/RNSTabBarControllerDelegate.h b/ios/bottom-tabs/host/RNSTabBarControllerDelegate.h index 9882f220b1..3f40899ce8 100644 --- a/ios/bottom-tabs/host/RNSTabBarControllerDelegate.h +++ b/ios/bottom-tabs/host/RNSTabBarControllerDelegate.h @@ -1,3 +1,5 @@ +#pragma once + #import NS_ASSUME_NONNULL_BEGIN diff --git a/ios/bottom-tabs/screen/RNSBottomTabsScreenComponentView.h b/ios/bottom-tabs/screen/RNSBottomTabsScreenComponentView.h index 7487f90b10..15653b957d 100644 --- a/ios/bottom-tabs/screen/RNSBottomTabsScreenComponentView.h +++ b/ios/bottom-tabs/screen/RNSBottomTabsScreenComponentView.h @@ -1,3 +1,5 @@ +#pragma once + #import #import "RNSBottomTabsScreenEventEmitter.h" #import "RNSEnums.h" diff --git a/ios/bottom-tabs/screen/RNSBottomTabsScreenComponentViewManager.h b/ios/bottom-tabs/screen/RNSBottomTabsScreenComponentViewManager.h index d8962c2979..94ffcce7a6 100644 --- a/ios/bottom-tabs/screen/RNSBottomTabsScreenComponentViewManager.h +++ b/ios/bottom-tabs/screen/RNSBottomTabsScreenComponentViewManager.h @@ -1,3 +1,5 @@ +#pragma once + #import NS_ASSUME_NONNULL_BEGIN diff --git a/ios/bottom-tabs/screen/RNSBottomTabsScreenEventEmitter.h b/ios/bottom-tabs/screen/RNSBottomTabsScreenEventEmitter.h index 659114d28a..7ad5df8889 100644 --- a/ios/bottom-tabs/screen/RNSBottomTabsScreenEventEmitter.h +++ b/ios/bottom-tabs/screen/RNSBottomTabsScreenEventEmitter.h @@ -1,3 +1,5 @@ +#pragma once + #import // Hide C++ symbols from C compiler used when building Swift module diff --git a/ios/bottom-tabs/screen/RNSTabsScreenViewController.h b/ios/bottom-tabs/screen/RNSTabsScreenViewController.h index d1c31164fa..37e6249764 100644 --- a/ios/bottom-tabs/screen/RNSTabsScreenViewController.h +++ b/ios/bottom-tabs/screen/RNSTabsScreenViewController.h @@ -1,3 +1,5 @@ +#pragma once + #import #import "RNSBottomTabsScreenComponentView.h" #import "RNSBottomTabsSpecialEffectsSupporting.h" diff --git a/ios/bridging/RNSReactBaseView.h b/ios/bridging/RNSReactBaseView.h index 3809509924..e8fa2e7315 100644 --- a/ios/bridging/RNSReactBaseView.h +++ b/ios/bridging/RNSReactBaseView.h @@ -1,3 +1,5 @@ +#pragma once + // Hide C++ symbols from C compiler used when building Swift module #if defined(__cplusplus) diff --git a/ios/events/RNSHeaderHeightChangeEvent.h b/ios/events/RNSHeaderHeightChangeEvent.h index f60f6f7431..ad3d88397e 100644 --- a/ios/events/RNSHeaderHeightChangeEvent.h +++ b/ios/events/RNSHeaderHeightChangeEvent.h @@ -1,3 +1,5 @@ +#pragma once + #import @interface RNSHeaderHeightChangeEvent : NSObject diff --git a/ios/events/RNSScreenViewEvent.h b/ios/events/RNSScreenViewEvent.h index e785b73b08..12f56358bd 100644 --- a/ios/events/RNSScreenViewEvent.h +++ b/ios/events/RNSScreenViewEvent.h @@ -1,3 +1,5 @@ +#pragma once + #import @interface RNSScreenViewEvent : NSObject diff --git a/ios/gamma/split-view/RNSSplitViewHostComponentEventEmitter.h b/ios/gamma/split-view/RNSSplitViewHostComponentEventEmitter.h index 9b2ac1df82..ea50d2688c 100644 --- a/ios/gamma/split-view/RNSSplitViewHostComponentEventEmitter.h +++ b/ios/gamma/split-view/RNSSplitViewHostComponentEventEmitter.h @@ -1,3 +1,5 @@ +#pragma once + #import // Hide C++ symbols from C compiler used when building Swift module diff --git a/ios/gamma/split-view/RNSSplitViewHostComponentView.h b/ios/gamma/split-view/RNSSplitViewHostComponentView.h index b2019b5218..1be6cf73c1 100644 --- a/ios/gamma/split-view/RNSSplitViewHostComponentView.h +++ b/ios/gamma/split-view/RNSSplitViewHostComponentView.h @@ -1,3 +1,5 @@ +#pragma once + #import "RNSDefines.h" #import "RNSEnums.h" #import "RNSReactBaseView.h" diff --git a/ios/gamma/split-view/RNSSplitViewScreenComponentEventEmitter.h b/ios/gamma/split-view/RNSSplitViewScreenComponentEventEmitter.h index 45a86fa963..6241222654 100644 --- a/ios/gamma/split-view/RNSSplitViewScreenComponentEventEmitter.h +++ b/ios/gamma/split-view/RNSSplitViewScreenComponentEventEmitter.h @@ -1,3 +1,5 @@ +#pragma once + #import // Hide C++ symbols from C compiler used when building Swift module diff --git a/ios/gamma/split-view/RNSSplitViewScreenComponentView.h b/ios/gamma/split-view/RNSSplitViewScreenComponentView.h index fbd1e462a4..143557d45d 100644 --- a/ios/gamma/split-view/RNSSplitViewScreenComponentView.h +++ b/ios/gamma/split-view/RNSSplitViewScreenComponentView.h @@ -1,3 +1,5 @@ +#pragma once + #import "RNSEnums.h" #import "RNSReactBaseView.h" #import "RNSSafeAreaProviding.h" diff --git a/ios/gamma/split-view/RNSSplitViewScreenShadowStateProxy.h b/ios/gamma/split-view/RNSSplitViewScreenShadowStateProxy.h index 630e2a0f68..e3d14ea7d1 100644 --- a/ios/gamma/split-view/RNSSplitViewScreenShadowStateProxy.h +++ b/ios/gamma/split-view/RNSSplitViewScreenShadowStateProxy.h @@ -1,3 +1,5 @@ +#pragma once + #import #if defined(__cplusplus) diff --git a/ios/gamma/stack/RNSScreenStackHostComponentView.h b/ios/gamma/stack/RNSScreenStackHostComponentView.h index 5184fceb41..49088aeefb 100644 --- a/ios/gamma/stack/RNSScreenStackHostComponentView.h +++ b/ios/gamma/stack/RNSScreenStackHostComponentView.h @@ -1,3 +1,5 @@ +#pragma once + #import "RNSReactBaseView.h" #import "RNSStackScreenComponentView.h" diff --git a/ios/gamma/stack/RNSStackScreenComponentEventEmitter.h b/ios/gamma/stack/RNSStackScreenComponentEventEmitter.h index ac7f6b28eb..01ff227383 100644 --- a/ios/gamma/stack/RNSStackScreenComponentEventEmitter.h +++ b/ios/gamma/stack/RNSStackScreenComponentEventEmitter.h @@ -1,3 +1,5 @@ +#pragma once + #import // Hide C++ symbols from C compiler used when building Swift module diff --git a/ios/gamma/stack/RNSStackScreenComponentView.h b/ios/gamma/stack/RNSStackScreenComponentView.h index 9c89827232..deb35a00a2 100644 --- a/ios/gamma/stack/RNSStackScreenComponentView.h +++ b/ios/gamma/stack/RNSStackScreenComponentView.h @@ -1,3 +1,5 @@ +#pragma once + #import "RNSReactBaseView.h" #import "RNSStackScreenComponentEventEmitter.h" diff --git a/ios/helpers/image/RNSImageLoadingHelper.h b/ios/helpers/image/RNSImageLoadingHelper.h index 41d006be5b..b0ef5b0ba4 100644 --- a/ios/helpers/image/RNSImageLoadingHelper.h +++ b/ios/helpers/image/RNSImageLoadingHelper.h @@ -1,3 +1,5 @@ +#pragma once + #import #import diff --git a/ios/helpers/scroll-view/RNSContentScrollViewProviding.h b/ios/helpers/scroll-view/RNSContentScrollViewProviding.h index d314d9a352..4d58705040 100644 --- a/ios/helpers/scroll-view/RNSContentScrollViewProviding.h +++ b/ios/helpers/scroll-view/RNSContentScrollViewProviding.h @@ -1,3 +1,5 @@ +#pragma once + @protocol RNSContentScrollViewProviding /** diff --git a/ios/helpers/scroll-view/RNSScrollEdgeEffectApplicator.h b/ios/helpers/scroll-view/RNSScrollEdgeEffectApplicator.h index 0b0547e844..20abb7cecc 100644 --- a/ios/helpers/scroll-view/RNSScrollEdgeEffectApplicator.h +++ b/ios/helpers/scroll-view/RNSScrollEdgeEffectApplicator.h @@ -1,3 +1,5 @@ +#pragma once + #import "RNSEnums.h" @protocol RNSScrollEdgeEffectProviding diff --git a/ios/helpers/scroll-view/RNSScrollViewFinder.h b/ios/helpers/scroll-view/RNSScrollViewFinder.h index 64f5a9e79c..04d40b38ba 100644 --- a/ios/helpers/scroll-view/RNSScrollViewFinder.h +++ b/ios/helpers/scroll-view/RNSScrollViewFinder.h @@ -1,3 +1,5 @@ +#pragma once + #import #import "RNSContentScrollViewProviding.h" diff --git a/ios/helpers/scroll-view/RNSScrollViewHelper.h b/ios/helpers/scroll-view/RNSScrollViewHelper.h index 8ed1d47543..cfa47ba3e0 100644 --- a/ios/helpers/scroll-view/RNSScrollViewHelper.h +++ b/ios/helpers/scroll-view/RNSScrollViewHelper.h @@ -1,3 +1,5 @@ +#pragma once + #import @interface RNSScrollViewHelper : NSObject diff --git a/ios/integrations/RNSDismissibleModalProtocol.h b/ios/integrations/RNSDismissibleModalProtocol.h index 006f809d10..dd08f3af77 100644 --- a/ios/integrations/RNSDismissibleModalProtocol.h +++ b/ios/integrations/RNSDismissibleModalProtocol.h @@ -1,3 +1,5 @@ +#pragma once + NS_ASSUME_NONNULL_BEGIN @protocol RNSDismissibleModalProtocol diff --git a/ios/safe-area/RNSSafeAreaProviding.h b/ios/safe-area/RNSSafeAreaProviding.h index 9ae96eee63..838fd246ac 100644 --- a/ios/safe-area/RNSSafeAreaProviding.h +++ b/ios/safe-area/RNSSafeAreaProviding.h @@ -1,3 +1,5 @@ +#pragma once + #import /** diff --git a/ios/safe-area/RNSSafeAreaViewComponentView.h b/ios/safe-area/RNSSafeAreaViewComponentView.h index 42bd3b6c41..10b729584a 100644 --- a/ios/safe-area/RNSSafeAreaViewComponentView.h +++ b/ios/safe-area/RNSSafeAreaViewComponentView.h @@ -1,3 +1,5 @@ +#pragma once + // Implementation adapted from `react-native-safe-area-context`: // https://github.com/AppAndFlow/react-native-safe-area-context/tree/v5.6.1 diff --git a/ios/safe-area/paper/RNSSafeAreaViewEdges.h b/ios/safe-area/paper/RNSSafeAreaViewEdges.h index 77d4c2c09c..5d300103a3 100644 --- a/ios/safe-area/paper/RNSSafeAreaViewEdges.h +++ b/ios/safe-area/paper/RNSSafeAreaViewEdges.h @@ -1,3 +1,5 @@ +#pragma once + // Implementation adapted from `react-native-safe-area-context`: // https://github.com/AppAndFlow/react-native-safe-area-context/tree/v5.6.1 diff --git a/ios/safe-area/paper/RNSSafeAreaViewLocalData.h b/ios/safe-area/paper/RNSSafeAreaViewLocalData.h index 2b69012e49..3a99b64af1 100644 --- a/ios/safe-area/paper/RNSSafeAreaViewLocalData.h +++ b/ios/safe-area/paper/RNSSafeAreaViewLocalData.h @@ -1,3 +1,5 @@ +#pragma once + // Implementation adapted from `react-native-safe-area-context`: // https://github.com/AppAndFlow/react-native-safe-area-context/tree/v5.6.1 diff --git a/ios/safe-area/paper/RNSSafeAreaViewManager.h b/ios/safe-area/paper/RNSSafeAreaViewManager.h index 6ed2c36881..c08c27e1d4 100644 --- a/ios/safe-area/paper/RNSSafeAreaViewManager.h +++ b/ios/safe-area/paper/RNSSafeAreaViewManager.h @@ -1,3 +1,5 @@ +#pragma once + // Implementation adapted from `react-native-safe-area-context`: // https://github.com/AppAndFlow/react-native-safe-area-context/tree/v5.6.1 diff --git a/ios/safe-area/paper/RNSSafeAreaViewShadowView.h b/ios/safe-area/paper/RNSSafeAreaViewShadowView.h index eaca214f52..a317fe04a4 100644 --- a/ios/safe-area/paper/RNSSafeAreaViewShadowView.h +++ b/ios/safe-area/paper/RNSSafeAreaViewShadowView.h @@ -1,3 +1,5 @@ +#pragma once + // Implementation adapted from `react-native-safe-area-context`: // https://github.com/AppAndFlow/react-native-safe-area-context/tree/v5.6.1 diff --git a/ios/stubs/RNSGammaStubs.h b/ios/stubs/RNSGammaStubs.h index dfe788d39a..08dd8b11fd 100644 --- a/ios/stubs/RNSGammaStubs.h +++ b/ios/stubs/RNSGammaStubs.h @@ -1,3 +1,5 @@ +#pragma once + #import // These symbols are a stubs for components defined in Gamma project implementation. diff --git a/ios/utils/NSString+RNSUtility.h b/ios/utils/NSString+RNSUtility.h index 81cf9431b9..72e754bed8 100644 --- a/ios/utils/NSString+RNSUtility.h +++ b/ios/utils/NSString+RNSUtility.h @@ -1,3 +1,5 @@ +#pragma once + #import NS_ASSUME_NONNULL_BEGIN diff --git a/ios/utils/RCTSurfaceTouchHandler+RNSUtility.h b/ios/utils/RCTSurfaceTouchHandler+RNSUtility.h index 2f257507be..a7a07de17c 100644 --- a/ios/utils/RCTSurfaceTouchHandler+RNSUtility.h +++ b/ios/utils/RCTSurfaceTouchHandler+RNSUtility.h @@ -1,3 +1,5 @@ +#pragma once + #ifdef RCT_NEW_ARCH_ENABLED #import diff --git a/ios/utils/RCTTouchHandler+RNSUtility.h b/ios/utils/RCTTouchHandler+RNSUtility.h index 5482488e18..509bd4af41 100644 --- a/ios/utils/RCTTouchHandler+RNSUtility.h +++ b/ios/utils/RCTTouchHandler+RNSUtility.h @@ -1,3 +1,5 @@ +#pragma once + #ifndef RCT_NEW_ARCH_ENABLED #import diff --git a/ios/utils/RNSBackBarButtonItem.h b/ios/utils/RNSBackBarButtonItem.h index 6d35a803e9..8d0afd58e6 100644 --- a/ios/utils/RNSBackBarButtonItem.h +++ b/ios/utils/RNSBackBarButtonItem.h @@ -1,3 +1,5 @@ +#pragma once + #import @interface RNSBackBarButtonItem : UIBarButtonItem diff --git a/ios/utils/RNSLog.h b/ios/utils/RNSLog.h index 9c0bef2d38..b6e0cb68e2 100644 --- a/ios/utils/RNSLog.h +++ b/ios/utils/RNSLog.h @@ -1,3 +1,5 @@ +#pragma once + #ifdef RNS_DEBUG_LOGGING #define RNSLog(...) NSLog(__VA_ARGS__) #else diff --git a/ios/utils/UINavigationBar+RNSUtility.h b/ios/utils/UINavigationBar+RNSUtility.h index 24af95fc29..0e7010d258 100644 --- a/ios/utils/UINavigationBar+RNSUtility.h +++ b/ios/utils/UINavigationBar+RNSUtility.h @@ -1,3 +1,5 @@ +#pragma once + #import NS_ASSUME_NONNULL_BEGIN diff --git a/ios/utils/UIView+RNSUtility.h b/ios/utils/UIView+RNSUtility.h index 90cf236066..9335252ed2 100644 --- a/ios/utils/UIView+RNSUtility.h +++ b/ios/utils/UIView+RNSUtility.h @@ -1,3 +1,5 @@ +#pragma once + #import #ifdef RCT_NEW_ARCH_ENABLED