Permalink
Browse files

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
  • Loading branch information...
shergin authored and facebook-github-bot committed Jan 12, 2018
1 parent a580a44 commit 7d9e902d72e240f54ea01225cc3272698ff70014
Showing with 4 additions and 1 deletion.
  1. +4 −1 React/Modules/RCTUIManager.m
@@ -548,7 +548,10 @@ - (RCTViewManagerUIBlock)uiBlockWithLayoutUpdateForRootView:(RCTRootShadowView *
});
}
if (RCTIsReactRootView(reactTag)) {
if (
RCTIsReactRootView(reactTag) &&
[shadowView isKindOfClass:[RCTRootShadowView class]]
) {
CGSize contentSize = shadowView.frame.size;
RCTExecuteOnMainQueue(^{

0 comments on commit 7d9e902

Please sign in to comment.