forked from wix/react-native-navigation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRCCViewController.h
executable file
·40 lines (31 loc) · 1.75 KB
/
RCCViewController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#import <UIKit/UIKit.h>
#import <React/RCTBridge.h>
#define GLOBAL_SCREEN_ACTION_COMMAND_TYPE @"commandType"
#define GLOBAL_SCREEN_ACTION_TIMESTAMP @"timestamp"
#define COMMAND_TYPE_PUSH @"Push"
#define COMMAND_TYPE_SHOW_MODAL @"ShowModal"
#define COMMAND_TYPE_BOTTOME_TAB_SELECTED @"BottomTabSelected"
#define COMMAND_TYPE_INITIAL_SCREEN @"InitialScreen"
extern NSString* const RCCViewControllerCancelReactTouchesNotification;
@interface RCCViewController : UIViewController
@property (nonatomic) NSMutableDictionary *navigatorStyle;
@property (nonatomic) BOOL navBarHidden;
@property (nonatomic, strong) NSString *controllerId;
@property (nonatomic, strong) NSString *commandType;
@property (nonatomic, strong) NSString *timestamp;
@property (nonatomic) RCCViewController *previewController;
@property (nonatomic) UIView *previewView;
@property (nonatomic) NSArray *previewActions;
@property (nonatomic) BOOL previewCommit;
@property (nonatomic) id previewContext;
+ (UIViewController*)controllerWithLayout:(NSDictionary *)layout globalProps:(NSDictionary *)globalProps bridge:(RCTBridge *)bridge;
- (instancetype)initWithProps:(NSDictionary *)props children:(NSArray *)children globalProps:(NSDictionary *)globalProps bridge:(RCTBridge *)bridge;
- (instancetype)initWithComponent:(NSString *)component passProps:(NSDictionary *)passProps navigatorStyle:(NSDictionary*)navigatorStyle globalProps:(NSDictionary *)globalProps bridge:(RCTBridge *)bridge;
- (void)setStyleOnAppear;
- (void)setStyleOnInit;
- (void)updateStyle;
- (void)setNavBarVisibilityChange:(BOOL)animated;
@end
@protocol RCCViewControllerDelegate <NSObject>
-(void)setStyleOnAppearForViewController:(UIViewController*)viewController;
@end