Surface: Using screen size as a default maximum size of Fabric Surface

Summary: That's a temporary change that useful only while we don't have deeper/proper intergration with UIKit's navigation infra.

Reviewed By: mdvacca

Differential Revision: D13104172

fbshipit-source-id: 024e71e04470d56d2c5e9b3f6c3392555ce50b63
This commit is contained in:
Valentin Shergin
2018-11-17 11:43:25 -08:00
committed by Facebook Github Bot
parent bea3bb6956
commit 346c9d5f2c
+2 -1
View File
@@ -49,7 +49,8 @@
_rootTag = [RCTAllocateRootViewTag() integerValue];
_minimumSize = CGSizeZero;
_maximumSize = CGSizeMake(CGFLOAT_MAX, CGFLOAT_MAX);
// FIXME: Replace with `_maximumSize = CGSizeMake(CGFLOAT_MAX, CGFLOAT_MAX);`.
_maximumSize = RCTScreenSize();
_touchHandler = [RCTSurfaceTouchHandler new];