File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/react-native-gesture-handler/apple Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -273,10 +273,14 @@ - (void)registerViewWithGestureRecognizerAttachedIfNeeded:(RNGHUIView *)childVie
273273 RNGHUIView *touchHandlerView = childView;
274274
275275#if !TARGET_OS_OSX
276+ Class fullWindowOverlayContainerClass = NSClassFromString (@" RNSFullWindowOverlayContainer" );
277+
276278 if ([[childView reactViewController ] isKindOfClass: [RCTFabricModalHostViewController class ]]) {
277279 touchHandlerView = [childView reactViewController ].view ;
278280 } else {
279- while (touchHandlerView != nil && ![touchHandlerView isKindOfClass: [RCTSurfaceView class ]]) {
281+ while (
282+ touchHandlerView != nil && ![touchHandlerView isKindOfClass: [RCTSurfaceView class ]] &&
283+ (fullWindowOverlayContainerClass == nil || ![touchHandlerView isKindOfClass: fullWindowOverlayContainerClass])) {
280284 touchHandlerView = touchHandlerView.superview ;
281285 }
282286 }
You can’t perform that action at this time.
0 commit comments