Files
react-native/packages/react-native/React/Base/RCTRedBoxSetEnabled.m
T
Richard HowellandFacebook GitHub Bot 677672ab1f add missing function prototypes (#36709)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/36709

Add missing function prototypes

Changelog: [Internal]

Reviewed By: adamjernst

Differential Revision: D44520929

fbshipit-source-id: f363b8355b805f7f1a2701ebd9a61efd0d6bc06e
2023-03-30 08:34:35 -07:00

25 lines
445 B
Objective-C

/*
* 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;
}