From 840e2b980d0e85f194372cf78a07c99617ea52d1 Mon Sep 17 00:00:00 2001 From: Phillip Pan Date: Tue, 16 May 2023 17:47:06 -0700 Subject: [PATCH] mark RCTInstance constructor as designated initializer (#37362) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/37362 Changelog: [Internal] this class should not be instantiated without its dependencies Reviewed By: RSNara Differential Revision: D45747779 fbshipit-source-id: ac2869858ad0ee67fbf9c04c58ff0a2bdf98c224 --- .../react/bridgeless/platform/ios/Core/RCTInstance.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 90ed79d9b11..5751cb5cc59 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 @@ -58,7 +58,7 @@ typedef void (^_Null_unspecified RCTInstanceInitialBundleLoadCompletionBlock)(); turboModuleManagerDelegate:(id)turboModuleManagerDelegate onInitialBundleLoad:(RCTInstanceInitialBundleLoadCompletionBlock)onInitialBundleLoad bindingsInstallFunc:(facebook::react::ReactInstance::BindingsInstallFunc)bindingsInstallFunc - moduleRegistry:(RCTModuleRegistry *)moduleRegistry FB_OBJC_DIRECT; + moduleRegistry:(RCTModuleRegistry *)moduleRegistry NS_DESIGNATED_INITIALIZER FB_OBJC_DIRECT; - (void)callFunctionOnJSModule:(NSString *)moduleName method:(NSString *)method args:(NSArray *)args;