react-native-gesture-recognizers icon indicating copy to clipboard operation
react-native-gesture-recognizers copied to clipboard

Android Support?

Open peterlazar1993 opened this issue 9 years ago • 7 comments

It would be awesome if it has android support.

peterlazar1993 avatar Dec 07 '15 10:12 peterlazar1993

This should already work for Android?

rclai avatar Jan 06 '16 17:01 rclai

Its not working on Android, any idea why?

KalebPortillo avatar Jul 12 '16 20:07 KalebPortillo

@KalebPortillo there is no platform specific code afaik. Can you be more specific than "it does not work"?

johanneslumpe avatar Jul 13 '16 05:07 johanneslumpe

the swipes are not detected in android... I was using the same code for both platforms

KalebPortillo avatar Jul 14 '16 19:07 KalebPortillo

@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!

johanneslumpe avatar Jul 16 '16 08:07 johanneslumpe

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 .

jayshah123 avatar Sep 21 '16 11:09 jayshah123

looks like fix should land in rn 0.34 as per https://github.com/facebook/react-native/pull/8199

jayshah123 avatar Sep 21 '16 12:09 jayshah123