React-native-swiper: scrollBy not working as intended

Created on 13 Sep 2017  ·  3Comments  ·  Source: leecade/react-native-swiper

Which OS ?

iOS

Version

Which versions are you using:

  • react-native-swiper v? 1.5.12
  • react-native v0.?.? 0.48.3

Expected behaviour

When opening up, it should should load up on the center Index (or pane) with a big "Home" in text on the screen. it should allow swiping left and right, showing "Left" or "Right" on screen.
intended

Actual behaviour

When opening, it renders on the home index (it shows it in the Pagination so) but renders the topmost pane code-wise (which is the left)
actual

Code

screen shot 2017-09-13 at 5 38 39 pm

Most helpful comment

+1

All 3 comments

+1

I suspect it could be something to do with setting the initial index. Try removing the prop index from the swiper.

@007agentHP Could you elaborate on what the ref prop does and where it appears in the documentation?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tibic picture tibic  ·  3Comments

nicolabortignon picture nicolabortignon  ·  3Comments

kliuj picture kliuj  ·  3Comments

kylehagler picture kylehagler  ·  3Comments

AndriiBoiko picture AndriiBoiko  ·  3Comments