Files
react-native/ReactCommon/fabric/components/image/ImageState.cpp
T
Samuel Susla 5cf327ed83 Blur image in Image component if blurRadius prop is provided
Summary:
Apply `blurRadius` prop once image is loaded.

Changelog: [Internal][iOS]

Reviewed By: mdvacca

Differential Revision: D21227536

fbshipit-source-id: 241aa45f253a06d61e861f6719f14fabf3467b56
2020-04-27 05:32:11 -07:00

27 lines
527 B
C++

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "ImageState.h"
namespace facebook {
namespace react {
ImageSource ImageState::getImageSource() const {
return imageSource_;
}
ImageRequest const &ImageState::getImageRequest() const {
return *imageRequest_;
}
Float ImageState::getBlurRadius() const {
return blurRadius_;
}
} // namespace react
} // namespace facebook