ImageProps.h 843 B

1234567891011121314151617181920212223242526272829303132
  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 <react/components/view/ViewProps.h>
  8. #include <react/graphics/Color.h>
  9. #include <react/imagemanager/primitives.h>
  10. namespace facebook {
  11. namespace react {
  12. // TODO (T28334063): Consider for codegen.
  13. class ImageProps final : public ViewProps {
  14. public:
  15. ImageProps() = default;
  16. ImageProps(const ImageProps &sourceProps, const RawProps &rawProps);
  17. #pragma mark - Props
  18. const ImageSources sources{};
  19. const ImageSources defaultSources{};
  20. const ImageResizeMode resizeMode{ImageResizeMode::Stretch};
  21. const Float blurRadius{};
  22. const EdgeInsets capInsets{};
  23. const SharedColor tintColor{};
  24. };
  25. } // namespace react
  26. } // namespace facebook