Fabric: Remove designated initializer in LayoutMetrics.h (#23758)

Summary:
This pull request removes the designated initializer in `LayoutMetrics.h`. This will help improve the portability of this file.

[General] [Changed] - Fabric: Remove designated initializer in LayoutMetrics.h
Pull Request resolved: https://github.com/facebook/react-native/pull/23758

Differential Revision: D14320526

Pulled By: shergin

fbshipit-source-id: 076ad389d0985d5213b521a2ffaca4ca7ae31599
This commit is contained in:
empyrical
2019-03-05 05:30:56 -08:00
committed by Facebook Github Bot
parent d2153fc58d
commit 50d095ce32

View File

@@ -57,7 +57,10 @@ struct LayoutMetrics {
* Represents some undefined, not-yet-computed or meaningless value of
* `LayoutMetrics` type.
*/
static const LayoutMetrics EmptyLayoutMetrics = {.frame = {.size = {-1, -1}}};
static const LayoutMetrics EmptyLayoutMetrics = {/* .frame = */ {
/* .origin = */ {0, 0},
/* .size = */ {-1, -1},
}};
} // namespace react
} // namespace facebook