Skip to content

Commit

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

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
  • Loading branch information
philIip authored and facebook-github-bot committed Nov 14, 2023
1 parent 2d19c95 commit f5c8d77
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 f5c8d77

Please sign in to comment.