RootProps.cpp 772 B

12345678910111213141516171819202122232425262728
  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. #include "RootProps.h"
  8. #include <react/components/view/YogaLayoutableShadowNode.h>
  9. #include <react/components/view/conversions.h>
  10. namespace facebook {
  11. namespace react {
  12. RootProps::RootProps(RootProps const &sourceProps, RawProps const &rawProps)
  13. : ViewProps(sourceProps, rawProps) {}
  14. RootProps::RootProps(
  15. RootProps const &sourceProps,
  16. LayoutConstraints const &layoutConstraints,
  17. LayoutContext const &layoutContext)
  18. : ViewProps(),
  19. layoutConstraints(layoutConstraints),
  20. layoutContext(layoutContext){};
  21. } // namespace react
  22. } // namespace facebook