mirror of
https://github.com/status-im/react-native.git
synced 2025-02-11 08:56:44 +00:00
Summary: Apparently, we don't need this functionality in Fabric because we compute mutation instactions during diffing anyways. But we still need (will need) `LayoutContext` for sure. Reviewed By: mdvacca Differential Revision: D7857045 fbshipit-source-id: 4be2744d9abea473ead847f35f698104f94af33d
31 lines
639 B
C++
31 lines
639 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 <unordered_set>
|
|
|
|
#include <fabric/core/LayoutableShadowNode.h>
|
|
#include <fabric/graphics/Geometry.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
/*
|
|
* LayoutContext: Additional contextual information useful for particular
|
|
* layout approaches.
|
|
*/
|
|
struct LayoutContext {
|
|
/*
|
|
* Compound absolute position of the node relative to the root node.
|
|
*/
|
|
Point absolutePosition {0, 0};
|
|
};
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|