Skip to content

Commit da35f5e

Browse files
committed
fix(ios): add missing +load guards and normalize #endif comments
Add guarded +load to 9 ComponentView subclasses (tabs, gamma) that were missing it entirely, which would prevent proper registration when using USE_FRAMEWORKS=dynamic. Normalize all #endif to include the // RCT_DYNAMIC_FRAMEWORKS comment for consistency.
1 parent f8b6f49 commit da35f5e

20 files changed

+83
-11
lines changed

ios/RNSFullWindowOverlay.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ + (void)load
8686
{
8787
[super load];
8888
}
89-
#endif
89+
#endif // RCT_DYNAMIC_FRAMEWORKS
9090

9191
#ifdef RCT_NEW_ARCH_ENABLED
9292
- (instancetype)init

ios/RNSModalScreen.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ + (void)load
3737
{
3838
[super load];
3939
}
40-
#endif
40+
#endif // RCT_DYNAMIC_FRAMEWORKS
4141

4242
+ (react::ComponentDescriptorProvider)componentDescriptorProvider
4343
{

ios/RNSScreen.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ + (void)load
9898
{
9999
[super load];
100100
}
101-
#endif
101+
#endif // RCT_DYNAMIC_FRAMEWORKS
102102

103103
- (instancetype)initWithFrame:(CGRect)frame
104104
{

ios/RNSScreenContainer.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ + (void)load
266266
{
267267
[super load];
268268
}
269-
#endif
269+
#endif // RCT_DYNAMIC_FRAMEWORKS
270270

271271
#pragma mark - RCTComponentViewProtocol
272272

ios/RNSScreenFooter.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ + (void)load
105105
{
106106
[super load];
107107
}
108-
#endif
108+
#endif // RCT_DYNAMIC_FRAMEWORKS
109109

110110
+ (react::ComponentDescriptorProvider)componentDescriptorProvider
111111
{

ios/RNSScreenNavigationContainer.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ + (void)load
5050
{
5151
[super load];
5252
}
53-
#endif
53+
#endif // RCT_DYNAMIC_FRAMEWORKS
5454

5555
#endif
5656

ios/RNSScreenStack.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ + (void)load
223223
{
224224
[super load];
225225
}
226-
#endif
226+
#endif // RCT_DYNAMIC_FRAMEWORKS
227227

228228
- (instancetype)initWithFrame:(CGRect)frame
229229
{

ios/RNSScreenStackHeaderConfig.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ + (void)load
9696
{
9797
[super load];
9898
}
99-
#endif
99+
#endif // RCT_DYNAMIC_FRAMEWORKS
100100

101101
- (instancetype)initWithFrame:(CGRect)frame
102102
{

ios/RNSScreenStackHeaderSubview.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ + (void)load
128128
{
129129
[super load];
130130
}
131-
#endif
131+
#endif // RCT_DYNAMIC_FRAMEWORKS
132132

133133
- (instancetype)initWithFrame:(CGRect)frame
134134
{

ios/RNSSearchBar.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ + (void)load
5050
{
5151
[super load];
5252
}
53-
#endif
53+
#endif // RCT_DYNAMIC_FRAMEWORKS
5454

5555
- (instancetype)init
5656
{

0 commit comments

Comments
 (0)