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:
Valentin Shergin
2017-03-08 18:45:28 -08:00
committed by Facebook Github Bot
parent 1269f1ef4e
commit 264d60b979
4 changed files with 16 additions and 13 deletions

View File

@@ -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];