/
githubmirror
/
react-native
Обзор
Документация
Войти
/
githubmirror
/
react-native
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
private/react-native-fantom/tester/src/TesterAnimationChoreographer.cpp
30 строк
849 B
Bartlomiej Bloniarz
Fix js sync on animation end in Animation Backend (#55566)
19 фев 2026, 13:20
19 фев 2026, 13:20
b38428c
Код
Авторство
О чём код?
/* * 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. */ #include "TesterAnimationChoreographer.h" #include <react/renderer/core/ReactPrimitives.h> #include <react/renderer/core/ShadowNode.h> #include <react/runtime/ReactInstanceConfig.h> namespace facebook::react { void TesterAnimationChoreographer::resume() { isPaused_ = false; } void TesterAnimationChoreographer::pause() { isPaused_ = true; } void TesterAnimationChoreographer::runUITick(AnimationTimestamp timestamp) { if (!isPaused_) { ShadowNode::setUseRuntimeShadowNodeReferenceUpdateOnThread(false); onAnimationFrame(timestamp); ShadowNode::setUseRuntimeShadowNodeReferenceUpdateOnThread(true); } } } // namespace facebook::react