/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/ReactCommon/react/renderer/uimanager/consistency/ShadowTreeRevisionProvider.h
27 строк
707 B
Rubén Norte
Implement UI consistency mechanism for JS thread (#43581)
25 мар 2024, 19:50
25 мар 2024, 19:50
332355e
Код
Авторство
О чём код?
/* * 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/root/RootShadowNode.h> #include <react/renderer/core/ReactPrimitives.h> #include <memory> namespace facebook::react { /** * This interface is used for UI consistency, indicating the revision of the * shadow tree that a caller should have access to. */ class ShadowTreeRevisionProvider { public: virtual ~ShadowTreeRevisionProvider() = default; virtual RootShadowNode::Shared getCurrentRevision(SurfaceId surfaceId) = 0; }; } // namespace facebook::react