diff --git a/React/Modules/RCTUIManager.m b/React/Modules/RCTUIManager.m index 76a61688473..b22453b9334 100644 --- a/React/Modules/RCTUIManager.m +++ b/React/Modules/RCTUIManager.m @@ -376,7 +376,10 @@ static NSDictionary *deviceOrientationEventBody(UIDeviceOrientation orientation) NSNumber *reactTag = view.reactTag; dispatch_async(RCTGetUIManagerQueue(), ^{ RCTShadowView *shadowView = self->_shadowViewRegistry[reactTag]; - RCTAssert(shadowView != nil, @"Could not locate view with tag #%@", reactTag); + if (shadowView == nil) { + RCTLogWarn(@"Could not locate shadow view with tag #%@, this is probably caused by a temporary inconsistency between native views and shadow views.", reactTag); + return; + } if (!CGSizeEqualToSize(shadowView.intrinsicContentSize, size)) { shadowView.intrinsicContentSize = size;