Skip to content

Commit

Permalink
Update to make it work with react-native-web (#16)
Browse files Browse the repository at this point in the history
* Update to work for react-native-web
* Bump version.
  • Loading branch information
cmmouritsen authored Sep 1, 2020
1 parent dc3fe8e commit 696a534
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Swiper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 696a534

Please sign in to comment.