Files
react-native/ReactCommon/react/renderer/imagemanager/ImageResponse.cpp
T
Paige Sun acda299453 6/6 Log image-rendered for Fabric image logging
Reviewed By: fkgozali

Differential Revision: D23450649

fbshipit-source-id: 58265a2c7855a2f4371d68637f09a07921821adf
2020-09-11 15:09:12 -07:00

28 lines
618 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 "ImageResponse.h"
namespace facebook {
namespace react {
ImageResponse::ImageResponse(
const std::shared_ptr<void> &image,
const std::shared_ptr<void> &metadata)
: image_(image), metadata_(metadata) {}
std::shared_ptr<void> ImageResponse::getImage() const {
return image_;
}
std::shared_ptr<void> ImageResponse::getMetadata() const {
return metadata_;
}
} // namespace react
} // namespace facebook