leecade / leecade/react-native-swiper

ScrollBy() on many slides

Open
#787 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
10.5k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the button and Swiper code shown in the issue, then reproduce navigation from the Mage and Tank slides to the Assassin, Mage, Marksman, and Support buttons. Trace how each button selects a slide and compare it with swipe navigation. Done means every button opens its particular slide from any starting slide.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.