react-native/ReactCommon/fabric/core/layout/LayoutConstraints.h
Valentin Shergin e052685ffc Fabric: Resonable default values for LayoutConstraints members
Summary: Trivial.

Reviewed By: mdvacca

Differential Revision: D7857046

fbshipit-source-id: 88400f1831bf66ccd3d880ddf1de3df27287b5be
2018-05-08 23:03:36 -07:00

27 lines
564 B
C++

/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <fabric/core/LayoutPrimitives.h>
#include <fabric/graphics/Geometry.h>
namespace facebook {
namespace react {
/*
* Unified layout constraints for measuring.
*/
struct LayoutConstraints {
Size minimumSize {0, 0};
Size maximumSize {kFloatUndefined, kFloatUndefined};
LayoutDirection layoutDirection;
};
} // namespace react
} // namespace facebook