1 |
|
2 | #ifdef RCT_NEW_ARCH_ENABLED
|
3 | #import <React/RCTViewComponentView.h>
|
4 | #endif
|
5 |
|
6 | #import <React/RCTConvert.h>
|
7 | #import <React/RCTViewManager.h>
|
8 | #import "RNSEnums.h"
|
9 |
|
10 | NS_ASSUME_NONNULL_BEGIN
|
11 |
|
12 | @interface RNSScreenStackHeaderSubview :
|
13 | #ifdef RCT_NEW_ARCH_ENABLED
|
14 | RCTViewComponentView
|
15 | #else
|
16 | UIView
|
17 | #endif
|
18 |
|
19 | @property (nonatomic) RNSScreenStackHeaderSubviewType type;
|
20 |
|
21 | @property (nonatomic, weak) UIView *reactSuperview;
|
22 |
|
23 | @property (nonatomic, weak) RCTBridge *bridge;
|
24 |
|
25 | #ifdef RCT_NEW_ARCH_ENABLED
|
26 | #else
|
27 | - (instancetype)initWithBridge:(RCTBridge *)bridge;
|
28 | #endif
|
29 |
|
30 | @end
|
31 |
|
32 | @interface RNSScreenStackHeaderSubviewManager : RCTViewManager
|
33 |
|
34 | @property (nonatomic) RNSScreenStackHeaderSubviewType type;
|
35 |
|
36 | @end
|
37 |
|
38 | @interface RCTConvert (RNSScreenStackHeaderSubview)
|
39 |
|
40 | + (RNSScreenStackHeaderSubviewType)RNSScreenStackHeaderSubviewType:(id)json;
|
41 |
|
42 | @end
|
43 |
|
44 | NS_ASSUME_NONNULL_END
|