mirror of
https://github.com/status-im/react-native.git
synced 2025-01-15 20:15:11 +00:00
Delete RCTRootView's deprecated 'initialProperties' property
Reviewed By: majak Differential Revision: D2597411 fb-gh-sync-id: 547837cac8e22e7fe78db6213741634b87bcf571
This commit is contained in:
parent
ea96a7edb8
commit
bf0934a531
@ -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
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user