Skip to content

Commit

Permalink
Merge pull request #10 from bobmulder/patch-1
Browse files Browse the repository at this point in the history
Typo - scrollToIndex is not Function but a Number
  • Loading branch information
zachgibson authored Dec 11, 2017
2 parents 9d20d62 + 9befb57 commit 7049f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ constructor() {
| __`dividerWidth`__ | _Number_ | `8` | The width of the divider between each page. (horizontal only) |
| __`dividerColor`__ | _String_ | `black` | Color of divider. |
| __`backgroundColor`__ | _String_ | `black` | ParallaxSwiper’s background color. |
| __`scrollToIndex`__ | _Function_ | 0 | Scrolls to index with a smooth animation. If used onComponentDidMount scroll is immediate with no animation. |
| __`scrollToIndex`__ | _Number_ | 0 | Scroll to page with a smooth animation. _Note_: You need to use state if you want to change index any other time than when component is rendered. |
| __`onMomentumScrollEnd`__ | _Function_ | `N/A` | Fired when ScrollView stops scrolling and is passed the current page index. |
| __`animatedValue`__ | _Number (Animated.Value)_ | `0` | Optionally pass a new instance of Animated.Value to access the animated value outside of ParallaxSwiper. |
| __`vertical`__ | _Boolean_ | `false` | When true, ParallaxSwiper’s children are arranged vertically in a column instead of horizontally in a row. For now only iOS supports this. |
Expand Down

0 comments on commit 7049f90

Please sign in to comment.