react-native/ReactCommon/fabric/core/layout/LayoutConstraints.h
Valentin Shergin f2da2d1963 Fabric: Proxying LayoutConstraints::direction down to RootNode's styles
Summary:
Trivial.
We have to proxy layout directions as well as min and max sizes to RootNode's Props to properly communicate the constrains to Yoga.

Reviewed By: sahrens

Differential Revision: D10387798

fbshipit-source-id: a02ec0a20b3ef28f6230738e5b3a4a2b0b8e0961
2018-10-15 23:25:47 -07:00

27 lines
596 B
C++

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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{LayoutDirection::Undefined};
};
} // namespace react
} // namespace facebook