File tree 2 files changed +11
-3
lines changed 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 10
10
11
11
#if TARGET_OS_OSX
12
12
13
+ #if RCT_NEW_ARCH_ENABLED
14
+
13
15
#include < react/renderer/core/LayoutMetrics.h>
14
16
15
17
@protocol RCTComponentViewProtocol;
16
18
19
+ #endif // RCT_NEW_ARCH_ENABLED
20
+
17
21
@interface RNGestureHandlerButton : NSControl
18
22
#else
19
23
@interface RNGestureHandlerButton : UIControl
20
- #endif
24
+ #endif // TARGET_OS_OSX
21
25
/* *
22
26
* Insets used when hit testing inside this view.
23
27
*/
24
28
@property (nonatomic , assign ) UIEdgeInsets hitTestEdgeInsets;
25
29
@property (nonatomic ) BOOL userEnabled;
26
30
27
- #if TARGET_OS_OSX
31
+ #if TARGET_OS_OSX && RCT_NEW_ARCH_ENABLED
28
32
- (void )mountChildComponentView : (RNGHUIView<RCTComponentViewProtocol> *)childComponentView index : (NSInteger )index ;
29
33
- (void )unmountChildComponentView : (RNGHUIView<RCTComponentViewProtocol> *)childComponentView index : (NSInteger )index ;
30
34
- (void )updateLayoutMetrics : (const facebook::react::LayoutMetrics &)layoutMetrics
Original file line number Diff line number Diff line change 14
14
#import < React/RCTUIKit.h>
15
15
#endif
16
16
17
+ #if RCT_NEW_ARCH_ENABLED
18
+
17
19
#import < React/RCTConversions.h>
18
20
#import < React/RCTFabricComponentsPlugins.h>
19
21
22
+ #endif
23
+
20
24
/* *
21
25
* Gesture Handler Button components overrides standard mechanism used by RN
22
26
* to determine touch target, which normally would reurn the UIView that is placed
@@ -87,7 +91,7 @@ - (RNGHUIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
87
91
}
88
92
#endif
89
93
90
- #if TARGET_OS_OSX
94
+ #if TARGET_OS_OSX && RCT_NEW_ARCH_ENABLED
91
95
- (void )mountChildComponentView : (RNGHUIView *)childComponentView index : (NSInteger )index
92
96
{
93
97
if (childComponentView.superview != nil ) {
You can’t perform that action at this time.
0 commit comments