Skip to content

Commit

Permalink
Merge pull request #106 from shixiaoquan/master
Browse files Browse the repository at this point in the history
解决ViewPager的禁用滚动设置无效的问题
  • Loading branch information
zbtang committed Feb 3, 2018
2 parents 13ec027 + c916de7 commit ba1cd91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/viewpager.md
Expand Up @@ -8,7 +8,7 @@
| onPageScroll | function | | |
| onPageScrollStateChanged | function | | |
| onPageSelected | function | | |
| scrollEnabled | bool | false | |
| horizontalScroll | bool | true | |


| Method | Params | Default | Note |
Expand Down
1 change: 1 addition & 0 deletions viewpager/ViewPager.js
Expand Up @@ -89,6 +89,7 @@ export default class ViewPager extends Component {
onLayout: this._onScrollViewLayout,
horizontal: true,
pagingEnabled: this.props.horizontalScroll ? true : false,
scrollEnabled: this.props.horizontalScroll ? true : false,
scrollsToTop: false,
showsHorizontalScrollIndicator: false,
showsVerticalScrollIndicator: false,
Expand Down

0 comments on commit ba1cd91

Please sign in to comment.