Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/adriandarian/after-the-storm
- Owner: adriandarian
- License: mit
- Created: 2020-03-28T05:29:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-26T18:39:47.000Z (almost 2 years ago)
- Last Synced: 2023-03-10T06:02:12.734Z (over 1 year ago)
- Topics: gcp-cloud-functions, mapbox-gl, mongodb, react-native, twilio-api, yelp-api
- Language: JavaScript
- Homepage: https://devpost.com/software/idk-kca8g4
- Size: 6.57 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
};
```