From bdc1984f161ab7fb3bba03457a61892be2ca0599 Mon Sep 17 00:00:00 2001 From: petterikorpimaa <129196760+petterikorpimaa@users.noreply.github.com> Date: Thu, 2 Jul 2026 08:37:08 +0300 Subject: [PATCH] fix: remove UIPointerInteraction from the view when unbinding the hover handler --- .../apple/Handlers/RNHoverHandler.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-native-gesture-handler/apple/Handlers/RNHoverHandler.m b/packages/react-native-gesture-handler/apple/Handlers/RNHoverHandler.m index c9f2532c80..ef441d14ee 100644 --- a/packages/react-native-gesture-handler/apple/Handlers/RNHoverHandler.m +++ b/packages/react-native-gesture-handler/apple/Handlers/RNHoverHandler.m @@ -122,8 +122,9 @@ - (void)unbindFromView { #if CHECK_TARGET(13_4) if (@available(iOS 13.4, *)) { - [super unbindFromView]; + // Remove the interaction before [super unbindFromView] detaches the recognizer and nils recognizer.view. [self.recognizer.view removeInteraction:_pointerInteraction]; + [super unbindFromView]; } #endif }