/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/Libraries/Animated/shouldUseTurboAnimatedModule.js
22 строки
633 B
Samuel Susla
use C++ Native Animated from JS if enabled (#51337)
20 май 2025, 16:48
20 май 2025, 16:48
0ac82ef
Код
Авторство
О чём код?
/** * 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. * * @flow strict-local * @format */ import * as ReactNativeFeatureFlags from '../../src/private/featureflags/ReactNativeFeatureFlags'; import Platform from '../Utilities/Platform'; function shouldUseTurboAnimatedModule(): boolean { if (ReactNativeFeatureFlags.cxxNativeAnimatedEnabled()) { return false; } else { return Platform.OS === 'ios' && global.RN$Bridgeless === true; } } export default shouldUseTurboAnimatedModule;