-
-
Notifications
You must be signed in to change notification settings - Fork 643
Expand file tree
/
Copy pathRNSSplitHostComponentView.h
More file actions
81 lines (62 loc) · 2.96 KB
/
RNSSplitHostComponentView.h
File metadata and controls
81 lines (62 loc) · 2.96 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#pragma once
#import "RNSDefines.h"
#import "RNSEnums.h"
#import "RNSReactBaseView.h"
#import "RNSSplitHostComponentEventEmitter.h"
NS_ASSUME_NONNULL_BEGIN
@class RNSSplitHostController;
@class RNSSplitScreenComponentView;
/**
* @class RNSSplitHostComponentView
* @brief A view component representing top-level native component for SplitView.
*
* Responsible for managing multi-column layouts via associated native UISplitViewController.
* Manages updates to the layout properties, column configuration, and event emission.
*/
@interface RNSSplitHostComponentView : RNSReactBaseView
- (nonnull NSMutableArray<RNSSplitScreenComponentView *> *)reactSubviews;
@property (nonatomic, nonnull, strong, readonly) RNSSplitHostController *splitHostController;
@end
#pragma mark - Props
/**
* @category Props
* @brief Definitions for React Native props.
*/
@interface RNSSplitHostComponentView ()
@property (nonatomic, readonly) UISplitViewControllerSplitBehavior preferredSplitBehavior;
@property (nonatomic, readonly) UISplitViewControllerPrimaryEdge primaryEdge;
@property (nonatomic, readonly) UISplitViewControllerDisplayMode preferredDisplayMode;
@property (nonatomic, readonly) UISplitViewControllerDisplayModeButtonVisibility displayModeButtonVisibility;
#if !TARGET_OS_TV
@property (nonatomic, readonly) UISplitViewControllerBackgroundStyle primaryBackgroundStyle;
#endif // !TARGET_OS_TV
@property (nonatomic, readonly) BOOL presentsWithGesture;
@property (nonatomic, readonly) BOOL showSecondaryToggleButton;
@property (nonatomic, readonly) BOOL showInspector;
@property (nonatomic, readonly) BOOL hasCustomTopColumnForCollapsing;
@property (nonatomic, readonly) UISplitViewControllerColumn topColumnForCollapsingColumn;
@property (nonatomic, readonly) double minimumPrimaryColumnWidth;
@property (nonatomic, readonly) double maximumPrimaryColumnWidth;
@property (nonatomic, readonly) double preferredPrimaryColumnWidthOrFraction;
@property (nonatomic, readonly) double minimumSupplementaryColumnWidth;
@property (nonatomic, readonly) double maximumSupplementaryColumnWidth;
@property (nonatomic, readonly) double preferredSupplementaryColumnWidthOrFraction;
#if RNS_IPHONE_OS_VERSION_AVAILABLE(26_0)
@property (nonatomic, readonly) double minimumSecondaryColumnWidth;
@property (nonatomic, readonly) double preferredSecondaryColumnWidthOrFraction;
@property (nonatomic, readonly) double minimumInspectorColumnWidth;
@property (nonatomic, readonly) double maximumInspectorColumnWidth;
@property (nonatomic, readonly) double preferredInspectorColumnWidthOrFraction;
#endif // RNS_IPHONE_OS_VERSION_AVAILABLE(26_0)
@property (nonatomic, readonly) RNSOrientation orientation;
@property (nonatomic, readonly) UITraitEnvironmentLayoutDirection layoutDirection;
@end
#pragma mark - Events
/**
* @category Events
* @brief APIs related to event emission to React Native.
*/
@interface RNSSplitHostComponentView ()
- (nonnull RNSSplitHostComponentEventEmitter *)reactEventEmitter;
@end
NS_ASSUME_NONNULL_END