ImageResponse.cpp 467 B

123456789101112131415161718192021
  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 "ImageResponse.h"
  8. namespace facebook {
  9. namespace react {
  10. ImageResponse::ImageResponse(const std::shared_ptr<void> &image)
  11. : image_(image) {}
  12. std::shared_ptr<void> ImageResponse::getImage() const {
  13. return image_;
  14. }
  15. } // namespace react
  16. } // namespace facebook