Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing swiping direction? #449

Closed
pukhalski opened this issue Dec 28, 2018 · 3 comments
Closed

Changing swiping direction? #449

pukhalski opened this issue Dec 28, 2018 · 3 comments

Comments

@pukhalski
Copy link

Question: I want to implement a stack-of-cards type of swiper, but I want user to be able to swipe right instead of left, so stack itself would be on the left side. How's it possible?

Thank you.

@bd-arc
Copy link
Contributor

bd-arc commented Dec 28, 2018

Hi @pukhalski,

The good news is: I've already done that!

Take a look at the source code for the stack effect and you'll see that the effect has been reverted between iOS and Android — you can preview the difference here.

One word of caution though: make sure to read about custom interpolation's caveats and to take a look at #262.

@bd-arc bd-arc closed this as completed Dec 28, 2018
@pukhalski
Copy link
Author

Thank you, @bd-arc. That was quick ;)

@emersonhsieh
Copy link

emersonhsieh commented May 27, 2020

Is there a reason why the effect is reversed for iOS and Android? Just curious :)

edit: Never mind, it's explained here. For others who find this thread: https://github.com/archriss/react-native-snap-carousel/blob/f3d3e98a60b6203c60956bd7ec1b0f84adf8d7a5/src/utils/animations.js#L113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants