Skip to content

Commit bf0934a

Browse files
javachefacebook-github-bot-5
authored andcommitted
Delete RCTRootView's deprecated 'initialProperties' property
Reviewed By: majak Differential Revision: D2597411 fb-gh-sync-id: 547837cac8e22e7fe78db6213741634b87bcf571
1 parent ea96a7e commit bf0934a

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

React/Base/RCTRootView.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,6 @@ extern NSString *const RCTContentDidAppearNotification;
7474
*/
7575
@property (nonatomic, strong, readonly) RCTBridge *bridge;
7676

77-
/**
78-
* DEPRECATED: access app properties via appProperties property instead
79-
*
80-
* The default properties to apply to the view when the script bundle
81-
* is first loaded. Defaults to nil/empty.
82-
*/
83-
@property (nonatomic, copy, readonly) NSDictionary *initialProperties DEPRECATED_MSG_ATTRIBUTE ("use appProperties instead");
84-
8577
/**
8678
* The properties to apply to the view. Use this property to update
8779
* application properties and rerender the view. Initialized with

React/Base/RCTRootView.m

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ @implementation RCTRootView
5353
RCTBridge *_bridge;
5454
NSString *_moduleName;
5555
NSDictionary *_launchOptions;
56-
NSDictionary *_initialProperties;
5756
RCTRootContentView *_contentView;
5857
}
5958

@@ -71,7 +70,6 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge
7170

7271
_bridge = bridge;
7372
_moduleName = moduleName;
74-
_initialProperties = [initialProperties copy];
7573
_appProperties = [initialProperties copy];
7674
_loadingViewFadeDelay = 0.25;
7775
_loadingViewFadeDuration = 0.25;
@@ -214,12 +212,6 @@ - (void)layoutSubviews
214212
};
215213
}
216214

217-
- (NSDictionary *)initialProperties
218-
{
219-
RCTLogWarn(@"Using deprecated 'initialProperties' property. Use 'appProperties' instead.");
220-
return _initialProperties;
221-
}
222-
223215
- (void)setAppProperties:(NSDictionary *)appProperties
224216
{
225217
RCTAssertMainThread();

0 commit comments

Comments
 (0)