`[-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-02-06 10:46:45 -08:00 committed by Facebook Github Bot
parent a57ddd5d72
commit 233015c93e
2 changed files with 2 additions and 2 deletions

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];
}
}

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];
}
}