Skip to content

Commit

Permalink
[skip ci] deprecate RCTRuntimeExecutorModule (facebook#44377)
Browse files Browse the repository at this point in the history
Summary:

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
  • Loading branch information
philIip authored and facebook-github-bot committed May 3, 2024
1 parent 4f111ab commit 24f6402
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 24f6402

Please sign in to comment.