From 233015c93ee6f986cf1267f143fdfadbf9c6831d Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Mon, 6 Feb 2017 10:46:45 -0800 Subject: [PATCH] `[-RCTUIManager setFrame:forView:]` was replaced with `[-RCTUIManager setSize:forView:]` Reviewed By: fkgozali Differential Revision: D4511712 fbshipit-source-id: 5c51d573bf638cb9b55d5f03b9f1882dc6129510 --- React/Base/RCTRootView.m | 2 +- React/Views/RCTModalHostView.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/React/Base/RCTRootView.m b/React/Base/RCTRootView.m index e7644a691..24819026a 100644 --- a/React/Base/RCTRootView.m +++ b/React/Base/RCTRootView.m @@ -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]; } } diff --git a/React/Views/RCTModalHostView.m b/React/Views/RCTModalHostView.m index adc776258..b06a31088 100644 --- a/React/Views/RCTModalHostView.m +++ b/React/Views/RCTModalHostView.m @@ -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]; } }