2018-06-22 07:28:40 -07:00
|
|
|
/**
|
2018-09-11 15:27:47 -07:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2018-06-22 07:28:40 -07:00
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "ImageLocalData.h"
|
|
|
|
|
|
|
|
#include <fabric/components/image/conversions.h>
|
|
|
|
#include <fabric/debug/debugStringConvertibleUtils.h>
|
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
|
|
|
ImageSource ImageLocalData::getImageSource() const {
|
|
|
|
return imageSource_;
|
|
|
|
}
|
|
|
|
|
|
|
|
const ImageRequest &ImageLocalData::getImageRequest() const {
|
|
|
|
return imageRequest_;
|
|
|
|
}
|
|
|
|
|
|
|
|
#pragma mark - DebugStringConvertible
|
|
|
|
|
|
|
|
std::string ImageLocalData::getDebugName() const {
|
|
|
|
return "ImageLocalData";
|
|
|
|
}
|
|
|
|
|
|
|
|
SharedDebugStringConvertibleList ImageLocalData::getDebugProps() const {
|
|
|
|
return {
|
|
|
|
debugStringConvertibleItem("imageSource", imageSource_)
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace react
|
|
|
|
} // namespace facebook
|