/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/React/DevSupport/RCTDevLoadingViewSetEnabled.m
24 строки
514 B
Kevin Gozali
iOS: deprecate undocumented RCT_ENABLE_LOADING_VIEW, replacing it with RCT_DEV_MENU (#37213)
04 май 2023, 09:23
04 май 2023, 09:23
8e1d9a0
Код
Авторство
О чём код?
/* * 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 "RCTDevLoadingViewSetEnabled.h" #if RCT_DEV_MENU static BOOL isDevLoadingViewEnabled = YES; #else static BOOL isDevLoadingViewEnabled = NO; #endif void RCTDevLoadingViewSetEnabled(BOOL enabled) { isDevLoadingViewEnabled = enabled; } BOOL RCTDevLoadingViewGetEnabled(void) { return isDevLoadingViewEnabled; }