RootProps.h 834 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #pragma once
  8. #include <memory>
  9. #include <react/components/view/ViewProps.h>
  10. #include <react/core/LayoutConstraints.h>
  11. #include <react/core/LayoutContext.h>
  12. namespace facebook {
  13. namespace react {
  14. class RootProps final : public ViewProps {
  15. public:
  16. RootProps() = default;
  17. RootProps(RootProps const &sourceProps, RawProps const &rawProps);
  18. RootProps(
  19. RootProps const &sourceProps,
  20. LayoutConstraints const &layoutConstraints,
  21. LayoutContext const &layoutContext);
  22. #pragma mark - Props
  23. LayoutConstraints const layoutConstraints{};
  24. LayoutContext const layoutContext{};
  25. };
  26. } // namespace react
  27. } // namespace facebook