@@ -38,7 +38,6 @@ typedef void (^RCTLoadSourceForBridgeWithProgressBlock)(
3838 RCTBridge *bridge,
3939 RCTSourceLoadProgressBlock onProgress,
4040 RCTSourceLoadBlock loadCallback);
41- typedef void (^RCTLoadSourceForBridgeBlock)(RCTBridge *bridge, RCTSourceLoadBlock loadCallback);
4241
4342#pragma mark - RCTRootViewFactory Configuration
4443@interface RCTRootViewFactoryConfiguration : NSObject
@@ -79,7 +78,8 @@ typedef void (^RCTLoadSourceForBridgeBlock)(RCTBridge *bridge, RCTSourceLoadBloc
7978 *
8079 * @returns: a UIView properly configured with a bridge for React Native.
8180 */
82- @property (nonatomic, nullable) RCTCreateRootViewWithBridgeBlock createRootViewWithBridge;
81+ @property (nonatomic, nullable) RCTCreateRootViewWithBridgeBlock createRootViewWithBridge __deprecated_msg(
82+ " This API will be removed along with the legacy architecture." );
8383
8484/* *
8585 * Block that allows to override default behavior of creating bridge.
@@ -92,7 +92,8 @@ typedef void (^RCTLoadSourceForBridgeBlock)(RCTBridge *bridge, RCTSourceLoadBloc
9292 *
9393 * @returns: a newly created instance of RCTBridge.
9494 */
95- @property (nonatomic , nullable ) RCTCreateBridgeWithDelegateBlock createBridgeWithDelegate;
95+ @property (nonatomic, nullable) RCTCreateBridgeWithDelegateBlock createBridgeWithDelegate __deprecated_msg(
96+ " This API will be removed along with the legacy architecture." );
9697
9798/* *
9899 * Block that allows to customize the rootView that is passed to React Native.
@@ -111,7 +112,8 @@ typedef void (^RCTLoadSourceForBridgeBlock)(RCTBridge *bridge, RCTSourceLoadBloc
111112 * When running from a locally bundled JS file, this should be a `file://` url
112113 * pointing to a path inside the app resources, e.g. `file://.../main.jsbundle`.
113114 */
114- @property (nonatomic , nullable ) RCTSourceURLForBridgeBlock sourceURLForBridge;
115+ @property (nonatomic , nullable ) RCTSourceURLForBridgeBlock sourceURLForBridge __deprecated_msg (
116+ " This API will be removed along with the legacy architecture." );
115117
116118/* *
117119 * The bridge initializes any registered RCTBridgeModules automatically, however
@@ -127,12 +129,14 @@ typedef void (^RCTLoadSourceForBridgeBlock)(RCTBridge *bridge, RCTSourceLoadBloc
127129 * not recommended in most cases - if the module methods and behavior do not
128130 * match exactly, it may lead to bugs or crashes.
129131 */
130- @property (nonatomic , nullable ) RCTExtraModulesForBridgeBlock extraModulesForBridge;
132+ @property (nonatomic , nullable ) RCTExtraModulesForBridgeBlock extraModulesForBridge __deprecated_msg (
133+ " This API will be removed along with the legacy architecture." );
131134
132135/* *
133136 * Retrieve the list of lazy-native-modules names for the given bridge.
134137 */
135- @property (nonatomic , nullable ) RCTExtraLazyModuleClassesForBridge extraLazyModuleClassesForBridge;
138+ @property (nonatomic , nullable ) RCTExtraLazyModuleClassesForBridge extraLazyModuleClassesForBridge __deprecated_msg (
139+ " This API will be removed along with the legacy architecture." );
136140
137141/* *
138142 * The bridge will call this block when a module has been called from JS
@@ -141,20 +145,17 @@ typedef void (^RCTLoadSourceForBridgeBlock)(RCTBridge *bridge, RCTSourceLoadBloc
141145 * in the implementation, and the system must attempt to look for it again among registered.
142146 * If the module was not registered, return NO to prevent further searches.
143147 */
144- @property (nonatomic , nullable ) RCTBridgeDidNotFindModuleBlock bridgeDidNotFindModule;
148+ @property (nonatomic , nullable ) RCTBridgeDidNotFindModuleBlock bridgeDidNotFindModule __deprecated_msg (
149+ " This API will be removed along with the legacy architecture." );
145150
146151/* *
147152 * The bridge will automatically attempt to load the JS source code from the
148153 * location specified by the `sourceURLForBridge:` method, however, if you want
149154 * to handle loading the JS yourself, you can do so by setting this property.
150155 */
151- @property (nonatomic , nullable ) RCTLoadSourceForBridgeWithProgressBlock loadSourceForBridgeWithProgress;
152-
153- /* *
154- * Similar to loadSourceForBridgeWithProgress but without progress
155- * reporting.
156- */
157- @property (nonatomic , nullable ) RCTLoadSourceForBridgeBlock loadSourceForBridge;
156+ @property (nonatomic , nullable )
157+ RCTLoadSourceForBridgeWithProgressBlock loadSourceForBridgeWithProgress __deprecated_msg (
158+ " This API will be removed along with the legacy architecture." );
158159
159160@end
160161
0 commit comments