React-native-snap-carousel: Tinder but with like/dislike on swipe

Created on 26 Mar 2018  路  1Comment  路  Source: meliorence/react-native-snap-carousel

Thank you for making this awesome project!
I am trying to implement the following "tinder-style" swiper:
tinder

I see that there is a tinder example. The only problem I have is how do I make it unidirectional? ie. no matter which direction I swipe the current item (yay or nay), it always should go to the next item in the deck. User shouldn't be able to swipe back to previously dismissed item.
Does this make sense? Is this possible with slideInterpolatedStyle?

Most helpful comment

Unfortunately no. The reason is that the component is basically a ScrollView, which mean we can apply miscellaneous interpolations based on scroll position, but not prevent the user from going back.

You should check the following plugin which does exactly what you're after: https://github.com/alexbrillant/react-native-deck-swiper

>All comments

Unfortunately no. The reason is that the component is basically a ScrollView, which mean we can apply miscellaneous interpolations based on scroll position, but not prevent the user from going back.

You should check the following plugin which does exactly what you're after: https://github.com/alexbrillant/react-native-deck-swiper

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akyker20 picture akyker20  路  3Comments

Murena7 picture Murena7  路  3Comments

codejet picture codejet  路  5Comments

niloufarMakhzani picture niloufarMakhzani  路  4Comments

Dr1992 picture Dr1992  路  4Comments