/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/ReactCommon/react/nativemodule/fantomtestspecificmethods/internal/FantomForcedCloneCommitHook.h
29 строк
899 B
Samuel Susla
Mark ShadowNode::Shared as deprecated and replace all usages (#52393)
04 июл 2025, 10:29
04 июл 2025, 10:29
0e175ce
Код
Авторство
О чём код?
/* * 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/core/ShadowNode.h> #include <react/renderer/uimanager/UIManager.h> #include <react/renderer/uimanager/UIManagerCommitHook.h> namespace facebook::react { struct FantomForcedCloneCommitHook : public UIManagerCommitHook { void commitHookWasRegistered( const UIManager& /*uiManager*/) noexcept override; void commitHookWasUnregistered( const UIManager& /*uiManager*/) noexcept override; RootShadowNode::Unshared shadowTreeWillCommit( const ShadowTree& shadowTree, const std::shared_ptr<const RootShadowNode>& oldRootShadowNode, const RootShadowNode::Unshared& newRootShadowNode) noexcept override; }; } // namespace facebook::react