/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/ReactCommon/react/renderer/components/view/ViewShadowNode.h
51 строка
1 KB
generatedunixname537391475639613
xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp (#52956)
01 авг 2025, 16:13
01 авг 2025, 16:13
e1f6a19
Код
Авторство
О чём код?
/* * 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/view/ConcreteViewShadowNode.h> #include <react/renderer/components/view/ViewProps.h> namespace facebook::react { // NOLINTNEXTLINE(modernize-avoid-c-arrays) extern const char ViewComponentName[]; /** * Implementation of the ViewProps that propagates feature flag. */ class ViewShadowNodeProps final : public ViewProps { public: ViewShadowNodeProps() = default; ViewShadowNodeProps( const PropsParserContext& context, const ViewShadowNodeProps& sourceProps, const RawProps& rawProps); }; /* * `ShadowNode` for <View> component. */ class ViewShadowNode final : public ConcreteViewShadowNode< ViewComponentName, ViewShadowNodeProps, ViewEventEmitter> { public: ViewShadowNode( const ShadowNodeFragment& fragment, const ShadowNodeFamily::Shared& family, ShadowNodeTraits traits); ViewShadowNode( const ShadowNode& sourceShadowNode, const ShadowNodeFragment& fragment); private: void initialize() noexcept; }; } // namespace facebook::react