RCTUIManager's setFrame:forView: fix - add support for Modal
Reviewed By: javache Differential Revision: D2585415 fb-gh-sync-id: f367cf5353593363357dd86ec959acb1676cba9b
This commit is contained in:
parent
36ec4752a8
commit
6faface188
|
@ -348,9 +348,15 @@ extern NSString *RCTBridgeModuleNameForClass(Class cls);
|
||||||
{
|
{
|
||||||
RCTAssertMainThread();
|
RCTAssertMainThread();
|
||||||
|
|
||||||
// The following variables have no meaning if the view is not a react root view
|
// The following variable has no meaning if the view is not a react root view
|
||||||
RCTRootView *rootView = (RCTRootView *)[view superview];
|
RCTRootViewSizeFlexibility sizeFlexibility = RCTRootViewSizeFlexibilityNone;
|
||||||
RCTRootViewSizeFlexibility sizeFlexibility = rootView != nil ? rootView.sizeFlexibility : RCTRootViewSizeFlexibilityNone;
|
|
||||||
|
if (RCTIsReactRootView(view.reactTag)) {
|
||||||
|
RCTRootView *rootView = (RCTRootView *)[view superview];
|
||||||
|
if (rootView != nil) {
|
||||||
|
sizeFlexibility = rootView.sizeFlexibility;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
NSNumber *reactTag = view.reactTag;
|
NSNumber *reactTag = view.reactTag;
|
||||||
dispatch_async(_shadowQueue, ^{
|
dispatch_async(_shadowQueue, ^{
|
||||||
|
|
Loading…
Reference in New Issue