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

Possible to swipe cards below the card #120

Open
michalpawlowski34 opened this issue Oct 23, 2023 · 2 comments
Open

Possible to swipe cards below the card #120

michalpawlowski34 opened this issue Oct 23, 2023 · 2 comments

Comments

@michalpawlowski34
Copy link

I am struggling with a bug where it is possible to use gestures for Swiper below the Card component all the way to to the bottom of the screen.
It looks like the Swiper takes the whole available space below.
Tested on iOS with Expo.

Code:
<View className="flex-1 -mx-3 -mt-10"> <Swiper cards={cardsData} renderCard={Card} verticalSwipe={false} stackSize={2} animateCardOpacity /> </View>

Card's given height is 60%. But no matter if I add margins, paddings 0 or apply it to containerStyle or even mess around with cardVerticalMargin prop it is still possible to swipe below the cards.

Any suggestions?

@Joe-Brar
Copy link

Same issue. Did you fix it?

@michalpawlowski34
Copy link
Author

Same issue. Did you fix it?

Not really. I suspect that it is caused by the Swiper parent that has the flex style assigned to it, but I didn't test it yet. Anyway might be worth giving a try.

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

2 participants