Skip to content

Commit

Permalink
hook up RCTDeprecation to [RCTBridgeModule bridge] (#41415)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #41415

Changelog: [iOS][Deprecated]

an example of RCT_DEPRECATION in action. you will get a build time warning if `RCT_DEPRECATED_DECLARATIONS` is enabled.

Reviewed By: cipolleschi

Differential Revision: D51184572

fbshipit-source-id: a0bcb4c69e63620bbdf2e2a7afb25c649fcaa100
  • Loading branch information
philIip authored and facebook-github-bot committed Nov 19, 2023
1 parent e7500df commit 9b1f8a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react-native/React/Base/RCTBridgeModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#import <React/RCTDefines.h>
#import <React/RCTJSThread.h>

#import <RCTDeprecation/RCTDeprecation.h>

#import "RCTBundleManager.h"

@class RCTBridge;
Expand Down Expand Up @@ -146,7 +148,7 @@ RCT_EXTERN_C_END
* To implement this in your module, just add `@synthesize bridge = _bridge;`
* If using Swift, add `@objc var bridge: RCTBridge!` to your module.
*/
@property (nonatomic, weak, readonly) RCTBridge *bridge;
@property (nonatomic, weak, readonly) RCTBridge *bridge RCT_DEPRECATED;

/**
* The queue that will be used to call all exported methods. If omitted, this
Expand Down

0 comments on commit 9b1f8a8

Please sign in to comment.