Hey guys,
The default working of stacked card is if i swipe right or left it will show me the next card. But what i want to do is , I want to implement logic to view the previous card when i swipe left and view next card when i swipe right. Any help will be appreciated
Thankyou,
Abhishek Dubey
Hi Abhishek,
I think it is not the purpose of the stacked cards to behave like this.
For the scenario you are proposing, to keep the previous cards and swipe left to go back and right to go next, I would suggest to use the Carousel component.
Kind Regards,João
Hi João,
I know it is not the correct scenario but I have seen stacked cards working the same way for example, tinder. In tinder there is swipe left and swipe right feature which performs different action but there is also an undo button which brings the previously swiped card on the screen. I am trying to implement something like that and thankyou for your suggestion regarding carousel but I don't think carousel will be a look good with my current scenario.
Abhishek Dubey.