From bf0934a5318bb506c1d6c05730cbe6093725c24a Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Thu, 26 Nov 2015 04:07:56 -0800 Subject: [PATCH] Delete RCTRootView's deprecated 'initialProperties' property Reviewed By: majak Differential Revision: D2597411 fb-gh-sync-id: 547837cac8e22e7fe78db6213741634b87bcf571 --- React/Base/RCTRootView.h | 8 -------- React/Base/RCTRootView.m | 8 -------- 2 files changed, 16 deletions(-) diff --git a/React/Base/RCTRootView.h b/React/Base/RCTRootView.h index fdb7d6b9b..710711704 100644 --- a/React/Base/RCTRootView.h +++ b/React/Base/RCTRootView.h @@ -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 diff --git a/React/Base/RCTRootView.m b/React/Base/RCTRootView.m index fb9116d62..6be45621c 100644 --- a/React/Base/RCTRootView.m +++ b/React/Base/RCTRootView.m @@ -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();