Skip to content

Commit a257641

Browse files
committed
use universal view instead of splitting
1 parent a853c6b commit a257641

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

packages/react-native-gesture-handler/apple/RNGestureHandlerDetector.mm

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,22 +98,14 @@ - (BOOL)shouldAttachGestureToSubview:(NSNumber *)handlerTag
9898
return [[[handlerManager registry] handlerWithTag:handlerTag] wantsToAttachDirectlyToView];
9999
}
100100

101-
#if TARGET_OS_OSX
102-
- (void)addSubview:(NSView *)view
103-
#else
104-
- (void)addSubview:(UIView *)view
105-
#endif
101+
- (void)addSubview:(RNGHUIView *)view
106102
{
107103
[super addSubview:view];
108104

109105
[self tryAttachHandlerToChildView];
110106
}
111107

112-
#if TARGET_OS_OSX
113-
- (void)willRemoveSubview:(NSView *)subview
114-
#else
115-
- (void)willRemoveSubview:(UIView *)subview
116-
#endif
108+
- (void)willRemoveSubview:(RNGHUIView *)subview
117109
{
118110
[self detachNativeGestureHandlers];
119111

0 commit comments

Comments
 (0)