From 4ba983401f60f0b56f43cf03498967f66eb564e3 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Mon, 27 Feb 2017 10:47:33 -0800 Subject: [PATCH] Usage `intrinsicContentSize` property of `RCTRootView` intead of deprecated `intrinsicSize` Reviewed By: blairvanderhoof Differential Revision: D4589913 fbshipit-source-id: 6d966e9b90a0cf3e736ac20e2b6f35cbf92ff3f3 --- .../UIExplorer/NativeExampleViews/FlexibleSizeExampleView.m | 2 +- docs/CommunicationIOS.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/UIExplorer/UIExplorer/NativeExampleViews/FlexibleSizeExampleView.m b/Examples/UIExplorer/UIExplorer/NativeExampleViews/FlexibleSizeExampleView.m index 7b6efe028..d057854de 100644 --- a/Examples/UIExplorer/UIExplorer/NativeExampleViews/FlexibleSizeExampleView.m +++ b/Examples/UIExplorer/UIExplorer/NativeExampleViews/FlexibleSizeExampleView.m @@ -101,7 +101,7 @@ RCT_EXPORT_MODULE(); - (void)rootViewDidChangeIntrinsicSize:(RCTRootView *)rootView { CGRect newFrame = rootView.frame; - newFrame.size = rootView.intrinsicSize; + newFrame.size = rootView.intrinsicContentSize; if (!_sizeUpdated) { _sizeUpdated = TRUE; diff --git a/docs/CommunicationIOS.md b/docs/CommunicationIOS.md index b0770a0dd..dd6ec7fff 100644 --- a/docs/CommunicationIOS.md +++ b/docs/CommunicationIOS.md @@ -203,7 +203,7 @@ Let's look at an example. - (void)rootViewDidChangeIntrinsicSize:(RCTRootView *)rootView { CGRect newFrame = rootView.frame; - newFrame.size = rootView.intrinsicSize; + newFrame.size = rootView.intrinsicContentSize; rootView.frame = newFrame; }