From b8daa5664607394802917889ccb298c2db83950e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Kwas=CC=81niewski?= Date: Tue, 21 Jan 2025 16:44:05 +0100 Subject: [PATCH] fix(ios): add missing nonnull annotations --- .../Libraries/AppDelegate/RCTArchConfiguratorProtocol.h | 4 ++++ .../Libraries/AppDelegate/RCTUIConfiguratorProtocol.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/packages/react-native/Libraries/AppDelegate/RCTArchConfiguratorProtocol.h b/packages/react-native/Libraries/AppDelegate/RCTArchConfiguratorProtocol.h index ccd3c6b6f6cd..888b7a7d8997 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTArchConfiguratorProtocol.h +++ b/packages/react-native/Libraries/AppDelegate/RCTArchConfiguratorProtocol.h @@ -8,6 +8,8 @@ #import #import +NS_ASSUME_NONNULL_BEGIN + @protocol RCTArchConfiguratorProtocol /// This method controls whether the `turboModules` feature of the New Architecture is turned on or off. /// @@ -30,3 +32,5 @@ /// @return: `true` if the new architecture is enabled. Otherwise returns `false`. - (BOOL)newArchEnabled; @end + +NS_ASSUME_NONNULL_END diff --git a/packages/react-native/Libraries/AppDelegate/RCTUIConfiguratorProtocol.h b/packages/react-native/Libraries/AppDelegate/RCTUIConfiguratorProtocol.h index 667367aacf30..9e76c5b54d82 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTUIConfiguratorProtocol.h +++ b/packages/react-native/Libraries/AppDelegate/RCTUIConfiguratorProtocol.h @@ -10,6 +10,8 @@ @class RCTRootView; +NS_ASSUME_NONNULL_BEGIN + @protocol RCTUIConfiguratorProtocol /** * The default `RCTColorSpace` for the app. It defaults to `RCTColorSpaceSRGB`. @@ -54,3 +56,5 @@ */ - (void)setRootView:(UIView *)rootView toRootViewController:(UIViewController *)rootViewController; @end + +NS_ASSUME_NONNULL_END