leecade / leecade/react-native-swiper
After upgrading from 1.5.10 index isn't working anymore in combination with loop=false
Open
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
- Add a loop={false} and index={1} to any swiper.
- Try it out.
- It will start swiping from index 0.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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