1 // Copyright 2015-present 650 Industries. All rights reserved.
2 
3 #import <React/RCTRedBox.h>
4 #import <React/RCTLogBox.h>
5 
6 #import <EXDevLauncher/EXDevLauncherRedBoxProtocol.h>
7 
8 NS_ASSUME_NONNULL_BEGIN
9 
10 @interface EXDevLauncherRedBox : NSObject <EXDevLauncherRedBoxProtocol>
11 
12 /**
13   This function will work fine as long as `EXDevLauncherRedBoxProtocol` is similar to `RCTRedBox` implementation.
14   We could inherit from `RCTRedBox`, but we don't want to initialize the base module.
15  */
16 - (RCTRedBox *)unsafe_castToRCTRedBox;
17 
18 - (void)registerLogBox:(RCTLogBox * _Nullable)logBox;
19 
20 @end
21 
22 NS_ASSUME_NONNULL_END
23