SafeAreaViewShadowNode.h 1.0 KB

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 <react/components/rncore/EventEmitters.h>
  9. #include <react/components/rncore/Props.h>
  10. #include <react/components/safeareaview/SafeAreaViewState.h>
  11. #include <react/components/view/ConcreteViewShadowNode.h>
  12. namespace facebook {
  13. namespace react {
  14. extern const char SafeAreaViewComponentName[];
  15. /*
  16. * `ShadowNode` for <SafeAreaView> component.
  17. */
  18. class SafeAreaViewShadowNode final : public ConcreteViewShadowNode<
  19. SafeAreaViewComponentName,
  20. SafeAreaViewProps,
  21. ViewEventEmitter,
  22. SafeAreaViewState> {
  23. using ConcreteViewShadowNode::ConcreteViewShadowNode;
  24. public:
  25. EdgeInsets alreadyAppliedPadding{};
  26. };
  27. } // namespace react
  28. } // namespace facebook