From 23fad5e2dbd40214510c461af6f2dbb00bad4682 Mon Sep 17 00:00:00 2001 From: Adam Cmiel Date: Wed, 17 May 2023 07:51:51 -0700 Subject: [PATCH] Annotate free functions (#37458) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/37458 Changelog: Add nullability annotations for RCTInstanceRuntimeDiagnosticFlags and RCTInstanceSetRuntimeDiagnosticFlags Reviewed By: ebgraham Differential Revision: D45908542 fbshipit-source-id: 1f3edb566133c8e6198f39f049acf7b0284e7e5e --- .../react/bridgeless/platform/ios/Core/RCTInstance.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-native/ReactCommon/react/bridgeless/platform/ios/Core/RCTInstance.h b/packages/react-native/ReactCommon/react/bridgeless/platform/ios/Core/RCTInstance.h index 5751cb5cc5919e..ed49c7938dfa9a 100644 --- a/packages/react-native/ReactCommon/react/bridgeless/platform/ios/Core/RCTInstance.h +++ b/packages/react-native/ReactCommon/react/bridgeless/platform/ios/Core/RCTInstance.h @@ -14,15 +14,15 @@ #import #import +NS_ASSUME_NONNULL_BEGIN + /** * A utility to enable diagnostics mode at runtime. Useful for test runs. * The flags are comma-separated string tokens, or an empty string when * nothing is enabled. */ RCT_EXTERN NSString *RCTInstanceRuntimeDiagnosticFlags(void); -RCT_EXTERN void RCTInstanceSetRuntimeDiagnosticFlags(NSString *flags); - -NS_ASSUME_NONNULL_BEGIN +RCT_EXTERN void RCTInstanceSetRuntimeDiagnosticFlags(NSString *_Nullable flags); @class RCTBundleManager; @class RCTInstance;