Skip to content

Commit 2381457

Browse files
authored
chore: Add missing #pragma once in header files (#3421)
Closes software-mansion/react-native-screens-labs#587 ## Description This PR adds missing #pragma once calls at the top of the header files for consistency. ## Changes Added #pragma once here and there. ## Test code and steps to reproduce Should be working exactly the same.
1 parent 0f983cd commit 2381457

File tree

76 files changed

+150
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+150
-0
lines changed

cpp/RNScreensTurboModule.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
// Needed on Paper only to hide the files from Swift build process
24
#if defined(__cplusplus)
35

ios/RCTConvert+RNScreens.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#if !RCT_NEW_ARCH_ENABLED
24

35
#import <React/RCTConvert.h>

ios/RCTImageComponentView+RNSScreenStackHeaderConfig.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#ifdef RCT_NEW_ARCH_ENABLED
24

35
#include <React/RCTImageComponentView.h>

ios/RNSBarButtonItem.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#import <React/RCTImageLoader.h>
24
#import <UIKit/UIKit.h>
35

ios/RNSConvert.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#import <UIKit/UIKit.h>
24
#ifdef RCT_NEW_ARCH_ENABLED
35
#import <react/renderer/components/rnscreens/Props.h>

ios/RNSEnums.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
typedef NS_ENUM(NSInteger, RNSScreenStackPresentation) {
24
RNSScreenStackPresentationPush,
35
RNSScreenStackPresentationModal,

ios/RNSFullWindowOverlay.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#import <React/RCTViewManager.h>
24

35
#ifdef RCT_NEW_ARCH_ENABLED

ios/RNSInvalidatedComponentsRegistry.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#ifdef RCT_NEW_ARCH_ENABLED
24

35
#import <UIKit/UIKit.h>

ios/RNSModalScreen.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#import "RNSScreen.h"
24

35
@interface RNSModalScreen : RNSScreenView

ios/RNSModule.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#pragma once
12

23
#ifdef RCT_NEW_ARCH_ENABLED
34
#import <rnscreens/rnscreens.h>

0 commit comments

Comments
 (0)