onPanResponderTerminationRequest is not called on Android #27778
Labels
API: PanResponder
Bug
Platform: Android
Android applications.
Stale
There has been a lack of activity on this issue and it may be closed soon.
React: 16.9.0
React Native version: 0.61.4 (through expo v36.0.1)
Android Version: 9
I've created a Swipe component (code shared below) using the
PanResponder
. TheonPanResponderTerminationRequest
method returnsfalse
to fix a bug that was causing the swipe to be unexpectedly interrupted and terminate earlier than expected.This fix worked perfect on iOS, but it didn't work on Android. I noticed that even though the
onPanResponderTerminate
was getting called,onPanResponderTerminationRequest
never seemed to get called on Android.I have looked at the documentation and it doesn't mention anything about it only working for iOS and in my research, I haven't found any explanation for this.
I found these old issues reporting the same thing, but all were just closed with no resolution or explanation.
Steps To Reproduce
ScrollView
so you can swipe and sometimes see thatonPanResponderTerminate
.onPanResponderTerminationRequest
to see if it's called using aconsole.log
console.log
is called, but on Android it's not.Describe what you expected to happen:
Before
onPanResponderTerminate
is calledonPanResponderTerminationRequest
should be called on both iOS and AndroidSwipe.js
Sample of file using Swipe.js
The text was updated successfully, but these errors were encountered: