Files
react-native/ReactCommon/fabric/components/root/RootProps.h
T
Valentin Shergin 4d35e4d92c Fabric: Make RootProps constructible from RawProps
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
2019-06-12 21:35:20 -07:00

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