From d678ca5b4c36d6a66d46c6a859559f22e83a5639 Mon Sep 17 00:00:00 2001 From: Bogdan Pop Date: Sun, 20 Sep 2020 22:55:10 +0300 Subject: [PATCH] Readme improvements (#24) * When stackSize=1, and using swipeBackCard, the card animation is overlap together when swipe back --- README.md | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7381d50f..c4341ef6 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ With respect to bugfixes and further developments, please check the [To Do](http | horizontalSwipe | bool | enable/disable horizontal swiping | | true | | verticalSwipe | bool | enable/disable vertical swiping | | true | | showSecondCard | bool | enable/disable second card while swiping | | true | -| stackSize | number | number of underlaying cards to show (showSecondCard must be enabled) | | 0 | +| stackSize | number | number of underlaying cards to show (showSecondCard must be enabled) | | 1 | ### Event callbacks @@ -270,7 +270,7 @@ Make sure you set showSecondCard={false} for smoother and proper transitions whi | Name | type | description | | :------------------- | :----- | :------------------------------------------------- | -| swipeBack | callback | swipe back into deck last swiped card | +| swipeBack | callback | swipe back into deck last swiped card. stacksize should be 2 cards or more | ## Props diff --git a/package.json b/package.json index 5fb0c8a7..6f6320b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-deck-swiper", - "version": "2.0.4", + "version": "2.0.5", "description": "Awesome tinder like card swiper for react-native. Highly Customizable!", "main": "index.js", "scripts": {