leecade / leecade/react-native-swiper

After upgrading from 1.5.10 index isn't working anymore in combination with loop=false

Open
#566 7 comments 5 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

Which OS ?

IOS

Version

Which versions are you using:

  • react-native-swiper v1.5.10
  • react-native v0.48
Expected behaviour

Page starts on provided index.

Actual behaviour

Page just starts at index 0.

How to reproduce it>

To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.

Steps to reproduce
  1. Add a loop={false} and index={1} to any swiper.
  2. Try it out.
  3. It will start swiping from index 0.

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 an example in the examples folder and reproduce the issue using index={1} with loop={false} on the stated React Native and swiper versions. Trace how the swiper initializes its starting page in this configuration, then verify that it begins at the provided index rather than index 0.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.