I tried to use ScrollView's onResponderRelease event on an android device, but it dosen't work fine. Code like this:
<ScrollView
onResponderRelease = {()=>{console.log('release')}}
/>
I saw many react-native libs used this api like this. Does it support android platform ?
Yes, the onResponderRelease event should work on Android devices as well as iOS devices. It is part of the ResponderEventPlugin which is a part of the React Native event system.
If you are experiencing issues with the event not firing on Android, it could be due to a variety of factors such as incorrect implementation or conflicts with other event handlers.
Here are a few things you can try to troubleshoot the issue:
Make sure that you are correctly importing and using the ScrollView component.
Check if there are any other event handlers or interactions that might be conflicting with the onResponderRelease event.
Make sure that the onResponderRelease event is correctly defined and being called when the user releases their finger from the scroll view.
Check if there are any errors being thrown in the console that could be causing the event to not work as expected.
Try using a different device or emulator to see if the issue is specific to a particular device or setup.