Open ruben-kasaz opened 4 years ago
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.
Android
Which versions are you using:
ref.current.scrollBy
try using this.refs.swiper.scrollBy(n) in your case refs.swiper.scrollBy(n)
this.refs.swiper.scrollBy(n)
refs.swiper.scrollBy(n)
This works, the issue can be closed
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: