We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a853c6b commit a257641Copy full SHA for a257641
1 file changed
packages/react-native-gesture-handler/apple/RNGestureHandlerDetector.mm
@@ -98,22 +98,14 @@ - (BOOL)shouldAttachGestureToSubview:(NSNumber *)handlerTag
98
return [[[handlerManager registry] handlerWithTag:handlerTag] wantsToAttachDirectlyToView];
99
}
100
101
-#if TARGET_OS_OSX
102
-- (void)addSubview:(NSView *)view
103
-#else
104
-- (void)addSubview:(UIView *)view
105
-#endif
+- (void)addSubview:(RNGHUIView *)view
106
{
107
[super addSubview:view];
108
109
[self tryAttachHandlerToChildView];
110
111
112
113
-- (void)willRemoveSubview:(NSView *)subview
114
115
-- (void)willRemoveSubview:(UIView *)subview
116
+- (void)willRemoveSubview:(RNGHUIView *)subview
117
118
[self detachNativeGestureHandlers];
119
0 commit comments