ReactNative onResponderRelease not working on Android

I tried using the ScrollView onResponderRelease event on an Android device, but it is not working fine. Code like this:

<ScrollView onResponderRelease = {()=>{console.log('release')}} /> 

I saw that many interactive libs used this api like this. Does it support the Android platform?

+7
react-native
source share
1 answer

Yes, he has such a problem - you can read about it https://github.com/facebook/react-native/issues/9447

Try using 'onMomentumScrollEnd', in some cases it will do exactly what you expect:

 <ScrollView onMomentumScrollEnd = {()=>{console.log('release on Android')}} onResponderRelease = {()=>{console.log('release on IOS')}} /> 
0
source share

All Articles