leecade / leecade/react-native-swiper

Swiper rendering last item first

Open
#932 8 comments 8 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

OS : Android and iOS
Version

Which versions are you using:

  • react-native-swiper v : 1.5.14
  • react-native v : 0.57.5
Expected behaviour

Swiper should show first item from the array

Actual behaviour

The active dot is at the first position but the image shown is from the last item of the array. On next swipe the first image gets rendered and active dot remains at the first position. On further swiping it works correct

Steps to reproduce: Set the height of the Swiper container, when height is not given in style, it works correct but takes a random height

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 by reproducing the Swiper behavior on Android and iOS with a fixed-height container using react-native-swiper v1.5.14 and React Native 0.57.5. Trace the initial rendered item and active-dot state; done means the first array item is shown initially, the first dot remains active, and subsequent swipes render items in the correct order.

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.