You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerDetectorView.kt
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@ class RNGestureHandlerDetectorView(context: Context) : ReactViewGroup(context) {
109
109
}
110
110
111
111
for (tag in handlersToDetach) {
112
-
registry.detachHandler(tag)
112
+
registry.detachHandlerFromHostDetector(tag, this)
113
113
nativeHandlers.remove(tag)
114
114
attachedHandlers.remove(tag)
115
115
}
@@ -134,7 +134,7 @@ class RNGestureHandlerDetectorView(context: Context) : ReactViewGroup(context) {
134
134
135
135
for (child in virtualChildrenToDetach) {
136
136
for (tag in attachedVirtualHandlers[child]!!) {
137
-
registry.detachHandler(tag)
137
+
registry.detachHandlerFromHostDetector(tag, this)
138
138
}
139
139
attachedVirtualHandlers.remove(tag)
140
140
}
@@ -182,7 +182,7 @@ class RNGestureHandlerDetectorView(context: Context) : ReactViewGroup(context) {
182
182
?:throwException("Tried to access a non-existent registry")
183
183
184
184
for (tag in nativeHandlers) {
185
-
registry.detachHandler(tag)
185
+
registry.detachHandlerFromHostDetector(tag, this)
186
186
attachedHandlers.remove(tag)
187
187
}
188
188
}
@@ -197,13 +197,13 @@ class RNGestureHandlerDetectorView(context: Context) : ReactViewGroup(context) {
197
197
?:throwException("Tried to access a non-existent registry")
Copy file name to clipboardExpand all lines: packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRegistry.kt
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -78,8 +78,9 @@ class RNGestureHandlerRegistry : GestureHandlerRegistry {
0 commit comments