2019-11-05 02:58:49 +03:00
|
|
|
/*
|
2021-12-31 02:08:43 +03:00
|
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
2019-11-05 02:58:49 +03:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
|
2020-03-09 08:58:01 +03:00
|
|
|
void RCTRedBoxSetEnabled(BOOL enabled)
|
|
|
|
{
|
2019-11-05 02:58:49 +03:00
|
|
|
redBoxEnabled = enabled;
|
|
|
|
}
|
|
|
|
|
2020-03-09 08:58:01 +03:00
|
|
|
BOOL RCTRedBoxGetEnabled()
|
|
|
|
{
|
2019-11-05 02:58:49 +03:00
|
|
|
return redBoxEnabled;
|
|
|
|
}
|