mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
4d35e4d92c
Summary: Even though it makes no sense to construct RootProps from RawProps, we need to support that (even if it's no-op) to be able to call this once from generic `ConcreteComponentDescriptor`. We will need it in the coming diff. Reviewed By: mdvacca Differential Revision: D15752970 fbshipit-source-id: b75a4023c5d0425a8dbe0f104a36a0f265eb6084
36 lines
835 B
C++
36 lines
835 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 <memory>
|
|
|
|
#include <react/components/view/ViewProps.h>
|
|
#include <react/core/LayoutConstraints.h>
|
|
#include <react/core/LayoutContext.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
class RootProps final : public ViewProps {
|
|
public:
|
|
RootProps() = default;
|
|
RootProps(RootProps const &sourceProps, RawProps const &rawProps);
|
|
RootProps(
|
|
RootProps const &sourceProps,
|
|
LayoutConstraints const &layoutConstraints,
|
|
LayoutContext const &layoutContext);
|
|
|
|
#pragma mark - Props
|
|
|
|
LayoutConstraints const layoutConstraints{};
|
|
LayoutContext const layoutContext{};
|
|
};
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|