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
This commit is contained in:
Phillip Pan
2024-05-03 01:29:13 -07:00
committed by Facebook GitHub Bot
parent 8f9ff89093
commit 7ea84bd3eb
@@ -5,14 +5,15 @@
* LICENSE file in the root directory of this source tree.
*/
#import <RCTDeprecation/RCTDeprecation.h>
@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 <NSObject>
@property (nonatomic, nullable, readwrite) RCTRuntimeExecutor *runtimeExecutor;
@property (nonatomic, nullable, readwrite) RCTRuntimeExecutor *runtimeExecutor RCT_DEPRECATED;
@end