Skip to content

Commit

Permalink
Introduce Android ImageManger (facebook#47721)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#47721

This diff splits Cxx ImageManger into Cxx and Android variants. They both are currently no-op, but the Android one will be used for image prefetching, just as `RCTImageManager.mm` for iOS.
Changelog: [Internal]

Differential Revision: D65753319
  • Loading branch information
dmytrorykun authored and facebook-github-bot committed Nov 20, 2024
1 parent 4cc09df commit 17a93bb
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#include "ImageManager.h"

namespace facebook::react {

ImageManager::ImageManager(
const ContextContainer::Shared& /*contextContainer*/) {
// Silence unused-private-field warning.
(void)self_;
// Not implemented.
}

ImageManager::~ImageManager() = default;

ImageRequest ImageManager::requestImage(
const ImageSource& imageSource,
SurfaceId /*surfaceId*/) const {
// Not implemented.
return {imageSource, nullptr, {}};
}

} // namespace facebook::react

0 comments on commit 17a93bb

Please sign in to comment.