mirror of
https://github.com/status-im/react-native.git
synced 2025-02-24 15:18:10 +00:00
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
27 lines
596 B
C++
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
|