Skip to content

Commit 7d9e902

Browse files
sherginfacebook-github-bot
authored andcommitted
Proper check for RCTRootShadowView in RCTUIManager
Summary: Because setting `intrinsicContentSize` for `RCTSurfaceRootView` doesn't have much sense. Reviewed By: mmmulani Differential Revision: D6701107 fbshipit-source-id: 259cdd27339bba3e8c9f98b6ca34affeb87f298c
1 parent a580a44 commit 7d9e902

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

React/Modules/RCTUIManager.m

+4-1
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,10 @@ - (RCTViewManagerUIBlock)uiBlockWithLayoutUpdateForRootView:(RCTRootShadowView *
548548
});
549549
}
550550

551-
if (RCTIsReactRootView(reactTag)) {
551+
if (
552+
RCTIsReactRootView(reactTag) &&
553+
[shadowView isKindOfClass:[RCTRootShadowView class]]
554+
) {
552555
CGSize contentSize = shadowView.frame.size;
553556

554557
RCTExecuteOnMainQueue(^{

0 commit comments

Comments
 (0)