/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/React/Base/RCTRedBoxSetEnabled.m
24 строки
445 B
Richard Howell
add missing function prototypes (#36709)
30 мар 2023, 18:34
30 мар 2023, 18:34
677672a
Код
Авторство
О чём код?
/* * 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 "RCTRedBoxSetEnabled.h" #if RCT_DEV static BOOL redBoxEnabled = YES; #else static BOOL redBoxEnabled = NO; #endif void RCTRedBoxSetEnabled(BOOL enabled) { redBoxEnabled = enabled; } BOOL RCTRedBoxGetEnabled(void) { return redBoxEnabled; }