Files
react-native/ReactCommon/fabric/components/root/RootProps.h
T
Valentin Shergin 8c14d518ce Fabric: Removing const qualifiers from some *Props fields
Summary:
Same as D19583582 (https://github.com/facebook/react-native/commit/5b2ea6ec6ab8cecad35d6309ceec3853aa37b0a3).
We need this for implementing some tests.

Changelog: [Internal] Fabric-specific internal change.

Reviewed By: sammy-SC

Differential Revision: D22284646

fbshipit-source-id: 9dd6575475c133b9426838021af4d59fb9fc3c65
2020-06-29 15:54:08 -07:00

36 lines
822 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 layoutConstraints{};
LayoutContext layoutContext{};
};
} // namespace react
} // namespace facebook