RCTRedBoxSetEnabled.h 514 B

1234567891011121314
  1. /*
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #import <React/RCTDefines.h>
  8. // In debug builds, the red box is enabled by default but it is further
  9. // customizable using this method. However, this method only has an effect in
  10. // builds where RCTRedBox is actually compiled in.
  11. RCT_EXTERN void RCTRedBoxSetEnabled(BOOL enabled);
  12. RCT_EXTERN BOOL RCTRedBoxGetEnabled(void);