leecade / leecade/react-native-swiper
renderPagination is not updating the current page
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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