Skip to content

Commit 0141a44

Browse files
okwasniewskifacebook-github-bot
authored andcommittedJan 21, 2025·
fix(ios): add missing nonnull annotations (#48817)
Summary: This PR adds missing nonnull annotations to make working with Swift better 👍🏻 ## Changelog: [IOS] [ADDED] - Missing nonnull annotations for RCTArchConfiguratorProtocol, RCTUIConfiguratorProtocol.h Pull Request resolved: #48817 Test Plan: CI Green Reviewed By: cortinico, dmytrorykun Differential Revision: D68443519 Pulled By: cipolleschi fbshipit-source-id: 53bf128c65421789034f45f637a08ed996684c6f
1 parent f2553d3 commit 0141a44

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
 

‎packages/react-native/Libraries/AppDelegate/RCTArchConfiguratorProtocol.h

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#import <React/RCTConvert.h>
99
#import <UIKit/UIKit.h>
1010

11+
NS_ASSUME_NONNULL_BEGIN
12+
1113
@protocol RCTArchConfiguratorProtocol
1214
/// This method controls whether the `turboModules` feature of the New Architecture is turned on or off.
1315
///
@@ -30,3 +32,5 @@
3032
/// @return: `true` if the new architecture is enabled. Otherwise returns `false`.
3133
- (BOOL)newArchEnabled;
3234
@end
35+
36+
NS_ASSUME_NONNULL_END

‎packages/react-native/Libraries/AppDelegate/RCTUIConfiguratorProtocol.h

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
@class RCTRootView;
1212

13+
NS_ASSUME_NONNULL_BEGIN
14+
1315
@protocol RCTUIConfiguratorProtocol
1416
/**
1517
* The default `RCTColorSpace` for the app. It defaults to `RCTColorSpaceSRGB`.
@@ -54,3 +56,5 @@
5456
*/
5557
- (void)setRootView:(UIView *)rootView toRootViewController:(UIViewController *)rootViewController;
5658
@end
59+
60+
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)
Please sign in to comment.