leecade / leecade/react-native-swiper
ScrollBy method undefined
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
Hello! I am trying to use react-native-swiper on my project.
I had my own custom buttons. So when I click on a button, it calls the scrollBy function.
But it's not working.
This is what I coded :

This is the error I get :

How I can solve this ?
Thanks.
Which OS ?
Android
Version
Which versions are you using:
- react-native-swiper v1.5.14
- react-native v0.59
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
Reproduce the Android case with react-native-swiper v1.5.14 and React Native 0.59, using custom buttons that call scrollBy as shown in the issue screenshots. Start by checking how the swiper component exposes scrollBy and verify the ref or entry point used by the button handler. Done means the custom button invokes scrollBy without an undefined-method error and changes the displayed slide.
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
- 25/100