React-native-swiper: ScrollBy() on many slides

Created on 18 May 2018  路  1Comment  路  Source: leecade/react-native-swiper

On this application, i allow user not only to swipe from different slides but also allows them to tap on a buttons which will automatically shows the given slides when that given button is pressed.

Here's the problem:
If i tap on the "Fighter Button" of course the slide will go to Fighter Slide and it will show a "Fighter" Text on that slide, same with other buttons if i tap on them, unfortunately if im in the Mage Slide and i tap on the Assassin Button, instead of going back, it goes to Marksman Slide which is something i dont want to happen or if im in Tank Slide and i tap on Assasin, Mage, Marksman or Support Buttons, instead of going on that particular slide, it shows me the Fighter Slide. Do you have any idea on how to solve this?

ezgif-4-bcabf46578

CODE FOR THE BUTTONS
scroll1

CODE FOR THE SWIPER
scroll1

Most helpful comment

Solved:

fix 3

fix 1

fix 2

>All comments

Solved:

fix 3

fix 1

fix 2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ruben-kasaz picture ruben-kasaz  路  3Comments

agzuniverse picture agzuniverse  路  3Comments

kliuj picture kliuj  路  3Comments

commit-master picture commit-master  路  3Comments

itinance picture itinance  路  3Comments