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: 3 months ago
JSON representation
Tinder for Tourists
- Host: GitHub
- URL: https://github.com/adriandarian/after-the-storm
- Owner: adriandarian
- License: mit
- Archived: true
- Created: 2020-03-28T05:29:00.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-26T18:39:47.000Z (over 2 years ago)
- Last Synced: 2025-02-14T05:43:40.697Z (4 months 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: 2
- 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);
};
```