Open ravi123saxena opened 3 years ago
@dpk89 did you find any solution ?
Did you find a solution for this?
I am using some custom code. I have attached the source code.
UseCase:
<SwipeGesture style={this.isLandscapeAsset() ? phoneStyles.vote2GalleryContainerLandscape : phoneStyles.vote2GalleryContainer} onSwipePerformed={this.onSwipePerformed}
{this.renderGallery(phoneStyles)}
HI, I have horizontal gallery and when swipe left it not happens in one swipe . I need multiple swipe to get it work. Please look into the issue.
<GestureRecognizer onSwipeLeft={() => { let currentPosition = this.state.currentPosition; if (this.state.alreadyVoted == true) { currentPosition = this.state.nextVotingPosition } if (currentPosition < this.state.contentList.length - 1) { this.setState({ currentPosition: currentPosition + 1, contentId: this.state.contentList[currentPosition + 1], alreadyVoted: false }) console.log('Displaying next item - ', currentPosition) } else { console.log('No more items to display!!') this.setState({ currentPosition: currentPosition + 1, alreadyVoted: false })