Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adriandarian/after-the-storm

Tinder for Tourists
https://github.com/adriandarian/after-the-storm

gcp-cloud-functions mapbox-gl mongodb react-native twilio-api yelp-api

Last synced: 8 days ago
JSON representation

Tinder for Tourists

Awesome Lists containing this project

README

        

# tinder-tourism

## App Breaking Note

Currently there is a line in the Swiper.js file that breaks the codebase and needs to be changes. Replace the `incrementCardIndex()` with the following code snipper

```javascript
incrementCardIndex = onSwiped => {
const { firstCardIndex } = this.state;
const { infinite } = this.props;
let newCardIndex = firstCardIndex + 1;
let swipedAllCards = false;

this.onSwipedCallbacks(onSwiped);

if (newCardIndex === this.state.cards.length) {
if (!infinite) {
this.props.onSwipedAll();
// onSwipeAll may have added cards
if (newCardIndex === this.state.cards.length) {
swipedAllCards = true;
}
} else {
newCardIndex = 0;
}
}

this.setCardIndex(newCardIndex, swipedAllCards);
};
```