Skip to content

Commit

Permalink
deprecate RCTRuntimeExecutorModule (#44377)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #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
  • Loading branch information
philIip authored and facebook-github-bot committed May 3, 2024
1 parent 8f9ff89 commit 7ea84bd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/react-native/React/Base/RCTRuntimeExecutorModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7ea84bd

Please sign in to comment.