mirror of
https://github.com/status-im/react-native.git
synced 2025-01-18 05:23:26 +00:00
79c5b8eb97
Summary: `LayoutableShadowNode.cpp` includes `"LayoutableShadowNode.h"` as well as `<fabric/core/LayoutContext.h>`. In turn, `LayoutContext.h` then includes `<fabric/core/LayoutableShadowNode.h>`. `LayoutContext.h` doesn't actually require `LayoutableShadowNode.h`, but this unnecessary inclusion can cause duplicate definition errors if the two include paths don't map to exactly the same file. This patch removes the unnecessary include. The CI's build system should cover the testing needed. [INTERNAL] [MINOR] [fabric] - Remove an unnecessary include in fabric/core/layout. Closes https://github.com/facebook/react-native/pull/19548 Differential Revision: D8313337 Pulled By: shergin fbshipit-source-id: 2e01e29ff25131543d9a8601483c2e716c7437be
28 lines
567 B
C++
28 lines
567 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/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
|