react-native-deck-swiper icon indicating copy to clipboard operation
react-native-deck-swiper copied to clipboard

Possible to swipe cards below the card

Open michalpawlowski34 opened this issue 2 years ago • 2 comments
trafficstars

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?

michalpawlowski34 avatar Oct 23 '23 15:10 michalpawlowski34

Same issue. Did you fix it?

Joe-Brar avatar Nov 27 '23 10:11 Joe-Brar

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.

michalpawlowski34 avatar Nov 27 '23 17:11 michalpawlowski34