mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
acda299453
Reviewed By: fkgozali Differential Revision: D23450649 fbshipit-source-id: 58265a2c7855a2f4371d68637f09a07921821adf
28 lines
618 B
C++
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
|