/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/Libraries/AppDelegate/RCTArchConfiguratorProtocol.h
38 строк
2 KB
Riccardo Cipolleschi
Add deprecation for legacy arch APIs (#53368)
27 авг 2025, 18:12
27 авг 2025, 18:12
d503ea4
Код
Авторство
О чём код?
/* * 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. */ #import <React/RCTConvert.h> #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN __attribute__((deprecated( "RCTArchConfiguratorProtocol is deprecated and will be removed when we remove the legacy architecture."))); @protocol RCTArchConfiguratorProtocol /// This method controls whether the `turboModules` feature of the New Architecture is turned on or off. /// /// @note: This is required to be rendering on Fabric (i.e. on the New Architecture). /// @return: `true` if the Turbo Native Module are enabled. Otherwise, it returns `false`. - (BOOL)turboModuleEnabled __attribute__((deprecated("This will be removed in a future version of React Native"))); /// This method controls whether the App will use the Fabric renderer of the New Architecture or not. /// /// @return: `true` if the Fabric Renderer is enabled. Otherwise, it returns `false`. - (BOOL)fabricEnabled __attribute__((deprecated("This will be removed in a future version of React Native"))); /// This method controls whether React Native's new initialization layer is enabled. /// /// @return: `true` if the new initialization layer is enabled. Otherwise returns `false`. - (BOOL)bridgelessEnabled __attribute__((deprecated("This will be removed in a future version of React Native"))); /// This method controls whether React Native uses new Architecture. /// /// @return: `true` if the new architecture is enabled. Otherwise returns `false`. - (BOOL)newArchEnabled __attribute__((deprecated("This will be removed in a future version of React Native"))); @end NS_ASSUME_NONNULL_END