diff --git a/React/Modules/RCTUIManager.m b/React/Modules/RCTUIManager.m index 4cefa9157ad663..a4d9bbb21e88db 100644 --- a/React/Modules/RCTUIManager.m +++ b/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(^{