leecade / leecade/react-native-swiper

Android Blank Render & Pagination Issues

Open
#744 10 comments 5 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

I have a dynamic swiper and I'm using the width resize on component mount hack so that the initial render isn't blank.

The problem with this is it messes up my pagination - the dots get stuck and don't always update. If I remove the width declaration from the swiper the pagination works perfectly.

I've tried a combination of width/height declarations but the pagination only works consistently when removed.

Anyone have a similar issue or know a solution?

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 Android dynamic swiper with the width-resize-on-mount workaround described in the issue, then compare it with the behavior when the width declaration is removed. Done means the initial render is not blank and the pagination dots update consistently; the issue names no files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.