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