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
170170 [_nativeHandlers addObject: @(tag)];
171171 } else {
172172 if (actionType == RNGestureHandlerActionTypeLogicDetector) {
173- [[handlerManager registry ] handlerWithTag: @(tag)].hostDetectorTag = @(self.tag );
174173 [handlerManager attachGestureHandler: @(tag) toViewWithTag: @(viewTag) withActionType: actionType];
175174 } else {
176175 [handlerManager.registry attachHandlerWithTag: @(tag) toView: self withActionType: actionType];
177176 }
178177 [attachedHandlers addObject: @(tag)];
179178 }
179+ [[handlerManager registry ] handlerWithTag: @(tag)].hostDetectorTag = @(self.tag );
180180 }
181181 }
182182
@@ -187,7 +187,7 @@ - (void)attachHandlers:(const std::vector<int> &)handlerTags
187187 }
188188
189189 // This covers the case where `NativeViewGestureHandlers` are attached after child views were created.
190- if (! self.subviews [0 ]) {
190+ if (self.subviews [0 ]) {
191191 [self tryAttachNativeHandlersToChildView ];
192192 }
193193}
You can’t perform that action at this time.
0 commit comments