leecade / leecade/react-native-swiper

ScrollBy method undefined

Open
#1,129 3 comments 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

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 :

Capture d’écran 2020-01-02 à 17 19 03

This is the error I get :

80896317_2650806868288379_6172734462464360448_n

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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.