leecade / leecade/react-native-swiper

Starts with last page, not First Page when set loop to true

Open
#731 14 comments 9 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.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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.