diff --git a/Swiper.js b/Swiper.js index 79b7cc27..71ce9b4b 100644 --- a/Swiper.js +++ b/Swiper.js @@ -504,7 +504,7 @@ class Swiper extends Component { this.onSwipedCallbacks(onSwiped) - allSwipedCheck = () => newCardIndex === this.state.cards.length + const allSwipedCheck = () => newCardIndex === this.state.cards.length if (allSwipedCheck()) { if (!infinite) { diff --git a/package.json b/package.json index 51629690..79b9ff9c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-deck-swiper", - "version": "2.0.1-beta", + "version": "2.0.2-beta", "description": "Awesome tinder like card swiper for react-native. Highly Customizable!", "main": "index.js", "scripts": {