hook up RCTDeprecation to [RCTBridgeModule bridge] (#41415)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
Phillip Pan
2023-11-18 22:13:40 -08:00
committed by Facebook GitHub Bot
parent e7500df57a
commit 9b1f8a81e9
@@ -11,6 +11,8 @@
#import <React/RCTDefines.h>
#import <React/RCTJSThread.h>
#import <RCTDeprecation/RCTDeprecation.h>
#import "RCTBundleManager.h"
@class RCTBridge;
@@ -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