mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Setting availableSize for RCTRootShadowView on earlier stage
Summary:
Moving setting `availableSize` for `RCTRootShadowView` on earlier stage allows to prevent situations where `availableSize` is not specified yet, but Yoga layout is already happening.
Because `availableSize` equals {infinity, infinity} by default (in this case), Yoga returns a lot of nodes with infinit metrics, which confises UIKit.
Reviewed By: mmmulani
Differential Revision: D4672170
fbshipit-source-id: f9d8c84799dcbdb6b9230ddef6284d84df268833
This commit is contained in:
committed by
Facebook Github Bot
parent
1269f1ef4e
commit
264d60b979
@@ -13,10 +13,6 @@
|
||||
|
||||
@implementation RCTRootShadowView
|
||||
|
||||
/**
|
||||
* Init the RCTRootShadowView with RTL status.
|
||||
* Returns a RTL CSS layout if isRTL is true (Default is LTR CSS layout).
|
||||
*/
|
||||
- (instancetype)init
|
||||
{
|
||||
self = [super init];
|
||||
|
||||
Reference in New Issue
Block a user