leecade / leecade/react-native-swiper

renderPagination is not updating the current page

Open
#115 1 comment 1 reaction 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've using renderPagination in Android, and it's not working. The function is called just once, when the component is rendered, but it does not update current page indicator.

I'm using react-native-swiper@1.4.3

PS. I've got nor error or warning, but when I turn buttons on, it throws this.refs.scrollView.scrollTo is not a function

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 at the renderPagination call in the Android component and inspect how the current-page indicator is updated after the component renders. Then check the buttons path around this.refs.scrollView.scrollTo; done means the indicator updates as pages change and the button path no longer raises the reported error.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.