We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android
Which versions are you using:
When you call carouselRef.current.scrollTo(slides.length - 1, true); it should transition to the last slide
It doesn't do anything bc his.internals.offset[dir] is undefined, leading https://github.com/leecade/react-native-swiper/blob/master/src/index.js#L467 to result in NaN
his.internals.offset[dir]
NaN
Solution possibly: const diff = offset[dir] - (this.internals.offset[dir] || 0)
const diff = offset[dir] - (this.internals.offset[dir] || 0)
scrollTo
scrollBy
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Which OS ?
Android
Version
Which versions are you using:
Expected behaviour
When you call carouselRef.current.scrollTo(slides.length - 1, true);
it should transition to the last slide
Actual behaviour
It doesn't do anything bc
his.internals.offset[dir]
is undefined, leadinghttps://github.com/leecade/react-native-swiper/blob/master/src/index.js#L467 to result in
NaN
Solution possibly:
const diff = offset[dir] - (this.internals.offset[dir] || 0)
How to reproduce it>
call
scrollTo
orscrollBy
after mount before you swipedSteps to reproduce
The text was updated successfully, but these errors were encountered: