mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 03:26:07 +00:00
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
This commit is contained in:
parent
a580a44b0d
commit
7d9e902d72
@ -548,7 +548,10 @@ static NSDictionary *deviceOrientationEventBody(UIDeviceOrientation orientation)
|
||||
});
|
||||
}
|
||||
|
||||
if (RCTIsReactRootView(reactTag)) {
|
||||
if (
|
||||
RCTIsReactRootView(reactTag) &&
|
||||
[shadowView isKindOfClass:[RCTRootShadowView class]]
|
||||
) {
|
||||
CGSize contentSize = shadowView.frame.size;
|
||||
|
||||
RCTExecuteOnMainQueue(^{
|
||||
|
Loading…
x
Reference in New Issue
Block a user