webraptor / react-native-deck-swiper

tinder like react-native deck swiper
ISC License
126 stars 81 forks source link

Possible to swipe cards below the card #120

Open michalpawlowski34 opened 8 months ago

michalpawlowski34 commented 8 months ago

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 commented 7 months ago

Same issue. Did you fix it?

michalpawlowski34 commented 7 months ago

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.