Open peterlazar1993 opened 8 years ago
This should already work for Android?
Its not working on Android, any idea why?
@KalebPortillo there is no platform specific code afaik. Can you be more specific than "it does not work"?
the swipes are not detected in android... I was using the same code for both platforms
@KalebPortillo oh that's weird. It is very much possible that things have changed between now and when I wrote this proof of concept. I haven't been using RN much recently because my day job does not permit it, so I couldn't really tell right off the bat. If you feel like investigating, that would be welcome!
When I swipe my finger left at a decent swiping speed, I get following log ->
' vx : ', 1.9513594000461165e-8, ' dy : ', -1.333343505859375, ' initialVelocityThreshold : ', 0.7, ' verticalThreshold = ', 10
As you see the velocity magnitude is waaayyyyy too small to be compared with threshold and validHorizontal always turns out to be false. Trying to get to the bottom of it .
looks like fix should land in rn 0.34 as per https://github.com/facebook/react-native/pull/8199
It would be awesome if it has android support.