/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/ReactCommon/react/renderer/components/image/ImageComponentDescriptor.h
34 строки
812 B
Christoph Purrer
Allow to provide a custom ImageManager for cxx platform (#48109)
06 дек 2024, 06:00
06 дек 2024, 06:00
e9f2791
Код
Авторство
О чём код?
/* * 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. */ #pragma once #include <react/renderer/components/image/ImageShadowNode.h> #include <react/renderer/core/ConcreteComponentDescriptor.h> namespace facebook::react { class ImageManager; extern const char ImageManagerKey[]; /* * Descriptor for <Image> component. */ class ImageComponentDescriptor final : public ConcreteComponentDescriptor<ImageShadowNode> { public: explicit ImageComponentDescriptor( const ComponentDescriptorParameters& parameters); void adopt(ShadowNode& shadowNode) const override; private: const std::shared_ptr<ImageManager> imageManager_; }; } // namespace facebook::react