[-RCTUIManager setFrame:forView:] was replaced with [-RCTUIManager setSize:forView:]

Reviewed By: fkgozali

Differential Revision: D4511712

fbshipit-source-id: 5c51d573bf638cb9b55d5f03b9f1882dc6129510
This commit is contained in:
Valentin Shergin
2017-03-14 11:32:12 -07:00
committed by Hector Ramos
parent d873f52574
commit 5f01aa78de
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -411,7 +411,7 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder:(nonnull NSCoder *)aDecoder)
{
super.frame = frame;
if (self.reactTag && _bridge.isValid) {
[_bridge.uiManager setFrame:frame forView:self];
[_bridge.uiManager setSize:frame.size forView:self];
}
}
+1 -1
View File
@@ -56,7 +56,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:coder)
- (void)notifyForBoundsChange:(CGRect)newBounds
{
if (_reactSubview && _isPresented) {
[_bridge.uiManager setFrame:newBounds forView:_reactSubview];
[_bridge.uiManager setSize:newBounds.size forView:_reactSubview];
[self notifyForOrientationChange];
}
}