From 7ea84bd3eb228529e341f9fab5abf6ddda961db8 Mon Sep 17 00:00:00 2001 From: Phillip Pan Date: Fri, 3 May 2024 01:29:13 -0700 Subject: [PATCH] deprecate RCTRuntimeExecutorModule (#44377) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44377 Changelog: [iOS][Deprecated] deprecate RCTRuntimeExecutorModule After we make CallInvoker available to native modules, we don't need this. Document it and mark it as deprecated. Reviewed By: RSNara Differential Revision: D56848799 fbshipit-source-id: 5628eef01a53bfd29d5b89c0398a938bdd87b0ac --- .../react-native/React/Base/RCTRuntimeExecutorModule.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/react-native/React/Base/RCTRuntimeExecutorModule.h b/packages/react-native/React/Base/RCTRuntimeExecutorModule.h index fd05fe2c54e..6c9058adbcd 100644 --- a/packages/react-native/React/Base/RCTRuntimeExecutorModule.h +++ b/packages/react-native/React/Base/RCTRuntimeExecutorModule.h @@ -5,14 +5,15 @@ * LICENSE file in the root directory of this source tree. */ +#import + @class RCTRuntimeExecutor; /** - * Have your module conform to this protocol to access the RuntimeExecutor. - * Only available in the bridgeless runtime. + * This is deprecated. Use RCTCallInvokerModule instead. */ @protocol RCTRuntimeExecutorModule -@property (nonatomic, nullable, readwrite) RCTRuntimeExecutor *runtimeExecutor; +@property (nonatomic, nullable, readwrite) RCTRuntimeExecutor *runtimeExecutor RCT_DEPRECATED; @end