leecade / leecade/react-native-swiper

the slide becomes empty when there is only 1 slide and the state updates

Open
#869 2 comments 0 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 all versions

Version

Which versions are you using:

  • react-native-swiper v1.5.6
  • react-native v0.55
Expected behaviour

the slide should not become empty

Actual behaviour

the slide becomes empty when the state updates

Steps to reproduce
  1. create the swiper with only 1 page and loop={true}
  2. create the button that updates some fake state value
  3. click on the button and the slide becomes empty

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 with a single-page swiper, loop={true}, and a button that updates state on iOS using the reported versions. Trace the single-slide loop behavior during the state update; done means the existing slide remains visible after the update.

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.