Delete RCTRootView's deprecated 'initialProperties' property

Reviewed By: majak

Differential Revision: D2597411

fb-gh-sync-id: 547837cac8e22e7fe78db6213741634b87bcf571
This commit is contained in:
Pieter De Baets 2015-11-26 04:07:56 -08:00 committed by facebook-github-bot-5
parent ea96a7edb8
commit bf0934a531
2 changed files with 0 additions and 16 deletions

View File

@ -74,14 +74,6 @@ extern NSString *const RCTContentDidAppearNotification;
*/
@property (nonatomic, strong, readonly) RCTBridge *bridge;
/**
* DEPRECATED: access app properties via appProperties property instead
*
* The default properties to apply to the view when the script bundle
* is first loaded. Defaults to nil/empty.
*/
@property (nonatomic, copy, readonly) NSDictionary *initialProperties DEPRECATED_MSG_ATTRIBUTE ("use appProperties instead");
/**
* The properties to apply to the view. Use this property to update
* application properties and rerender the view. Initialized with

View File

@ -53,7 +53,6 @@ NSString *const RCTContentDidAppearNotification = @"RCTContentDidAppearNotificat
RCTBridge *_bridge;
NSString *_moduleName;
NSDictionary *_launchOptions;
NSDictionary *_initialProperties;
RCTRootContentView *_contentView;
}
@ -71,7 +70,6 @@ NSString *const RCTContentDidAppearNotification = @"RCTContentDidAppearNotificat
_bridge = bridge;
_moduleName = moduleName;
_initialProperties = [initialProperties copy];
_appProperties = [initialProperties copy];
_loadingViewFadeDelay = 0.25;
_loadingViewFadeDuration = 0.25;
@ -214,12 +212,6 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
};
}
- (NSDictionary *)initialProperties
{
RCTLogWarn(@"Using deprecated 'initialProperties' property. Use 'appProperties' instead.");
return _initialProperties;
}
- (void)setAppProperties:(NSDictionary *)appProperties
{
RCTAssertMainThread();