File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/react-native-gesture-handler/apple Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -170,13 +170,13 @@ - (void)attachHandlers:(const std::vector<int> &)handlerTags
170
170
[_nativeHandlers addObject: @(tag)];
171
171
} else {
172
172
if (actionType == RNGestureHandlerActionTypeLogicDetector) {
173
- [[handlerManager registry ] handlerWithTag: @(tag)].hostDetectorTag = @(self.tag );
174
173
[handlerManager attachGestureHandler: @(tag) toViewWithTag: @(viewTag) withActionType: actionType];
175
174
} else {
176
175
[handlerManager.registry attachHandlerWithTag: @(tag) toView: self withActionType: actionType];
177
176
}
178
177
[attachedHandlers addObject: @(tag)];
179
178
}
179
+ [[handlerManager registry ] handlerWithTag: @(tag)].hostDetectorTag = @(self.tag );
180
180
}
181
181
}
182
182
@@ -187,7 +187,7 @@ - (void)attachHandlers:(const std::vector<int> &)handlerTags
187
187
}
188
188
189
189
// This covers the case where `NativeViewGestureHandlers` are attached after child views were created.
190
- if (! self.subviews [0 ]) {
190
+ if (self.subviews [0 ]) {
191
191
[self tryAttachNativeHandlersToChildView ];
192
192
}
193
193
}
You can’t perform that action at this time.
0 commit comments