ModalHostViewShadowNode.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 <react/components/modal/ModalHostViewState.h>
  9. #include <react/components/rncore/EventEmitters.h>
  10. #include <react/components/rncore/Props.h>
  11. #include <react/components/view/ConcreteViewShadowNode.h>
  12. namespace facebook {
  13. namespace react {
  14. extern const char ModalHostViewComponentName[];
  15. /*
  16. * `ShadowNode` for <Slider> component.
  17. */
  18. class ModalHostViewShadowNode final : public ConcreteViewShadowNode<
  19. ModalHostViewComponentName,
  20. ModalHostViewProps,
  21. ModalHostViewEventEmitter,
  22. ModalHostViewState> {
  23. public:
  24. using ConcreteViewShadowNode::ConcreteViewShadowNode;
  25. static ShadowNodeTraits BaseTraits() {
  26. auto traits = ConcreteViewShadowNode::BaseTraits();
  27. traits.set(ShadowNodeTraits::Trait::RootNodeKind);
  28. return traits;
  29. }
  30. };
  31. } // namespace react
  32. } // namespace facebook