diff --git a/ReactCommon/fabric/core/layout/LayoutMetrics.h b/ReactCommon/fabric/core/layout/LayoutMetrics.h index b7ee04a46fc..6cc7b51b596 100644 --- a/ReactCommon/fabric/core/layout/LayoutMetrics.h +++ b/ReactCommon/fabric/core/layout/LayoutMetrics.h @@ -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