leecade / leecade/react-native-swiper
Starts with last page, not First Page when set loop to true
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.13
- react-native v0.49.3
Expected behaviour
Starts with First Page.
Actual behaviour
When I set loop to true, it starts with first page, but after updating content of first page, it shows last page.
When I set loop to false, no problem.
I already looked at same issue when setting loop to true, but mine is not working either.
The first page has got RefreshControl with ScrollView.
When RefreshControl is called, the Swiper gets back to last page.
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
Reproduce the issue on iOS with react-native-swiper v1.5.13 and React Native v0.49.3, using loop mode, a first page with RefreshControl, and updated content. Inspect the swiper behavior around looped page selection after RefreshControl runs; done means refreshing or updating the first page leaves the swiper on the first page rather than moving to the last page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100