leecade / leecade/react-native-swiper

Programmatically update index

Open
#163 8 comments 15 reactions 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

Hi,
Great component.

Is there any way to programmatically update the active index of the swiper?
It would be helpful to have a parent component update a prop or call a method on the swiper, to have it animate to an index of choice.

Thanks

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

No file or test is named. Start by locating the Swiper component's active-index handling and public API, then determine how a parent could request an animated move to a chosen index. Done means exposing a usable prop or method and verifying that the active index changes with the requested animation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.