1 // Copyright 2015-present 650 Industries. All rights reserved. 2 3 #import "EXErrorView.h" 4 #import "EXKernelReactAppManager.h" 5 6 #import <React/RCTBridge.h> 7 8 @import UIKit; 9 10 NS_ASSUME_NONNULL_BEGIN 11 12 @interface EXViewController : UIViewController <EXReactAppManagerDelegate> 13 14 - (instancetype)initWithLaunchOptions: (NSDictionary *)launchOptions; 15 - (void)loadReactApplication; 16 - (void)showErrorWithType:(EXFatalErrorType)type error: (nullable NSError *)error; 17 - (NSDictionary *)launchOptions; 18 19 // TODO: make private 20 @property (nonatomic, assign) BOOL isLoading; 21 @property (nonatomic, strong) UIView *contentView; 22 @property (nonatomic, strong) EXKernelReactAppManager *appManager; 23 24 @end 25 26 NS_ASSUME_NONNULL_END 27