Skip to content

Commit

Permalink
Delete RCTRootView's deprecated 'initialProperties' property
Browse files Browse the repository at this point in the history
Reviewed By: majak

Differential Revision: D2597411

fb-gh-sync-id: 547837cac8e22e7fe78db6213741634b87bcf571
  • Loading branch information
javache authored and facebook-github-bot-5 committed Nov 26, 2015
1 parent ea96a7e commit bf0934a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions React/Base/RCTRootView.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions React/Base/RCTRootView.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ @implementation RCTRootView
RCTBridge *_bridge;
NSString *_moduleName;
NSDictionary *_launchOptions;
NSDictionary *_initialProperties;
RCTRootContentView *_contentView;
}

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

_bridge = bridge;
_moduleName = moduleName;
_initialProperties = [initialProperties copy];
_appProperties = [initialProperties copy];
_loadingViewFadeDelay = 0.25;
_loadingViewFadeDuration = 0.25;
Expand Down Expand Up @@ -214,12 +212,6 @@ - (void)layoutSubviews
};
}

- (NSDictionary *)initialProperties
{
RCTLogWarn(@"Using deprecated 'initialProperties' property. Use 'appProperties' instead.");
return _initialProperties;
}

- (void)setAppProperties:(NSDictionary *)appProperties
{
RCTAssertMainThread();
Expand Down

0 comments on commit bf0934a

Please sign in to comment.