Skip to content

Commit f2783ed

Browse files
dmytrorykunfacebook-github-bot
authored andcommitted
Introduce Android ImageManger (facebook#47721)
Summary: 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
1 parent dc36a10 commit f2783ed

File tree

1 file changed

+28
-0
lines changed
  • packages/react-native/ReactCommon/react/renderer/imagemanager/platform/android

1 file changed

+28
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and 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+
8+
#include "ImageManager.h"
9+
10+
namespace facebook::react {
11+
12+
ImageManager::ImageManager(
13+
const ContextContainer::Shared& /*contextContainer*/) {
14+
// Silence unused-private-field warning.
15+
(void)self_;
16+
// Not implemented.
17+
}
18+
19+
ImageManager::~ImageManager() = default;
20+
21+
ImageRequest ImageManager::requestImage(
22+
const ImageSource& imageSource,
23+
SurfaceId /*surfaceId*/) const {
24+
// Not implemented.
25+
return {imageSource, nullptr, {}};
26+
}
27+
28+
} // namespace facebook::react

0 commit comments

Comments
 (0)