Skip to content

Commit 50145bf

Browse files
authored
Merge pull request ptomasroos#512 from WaterEye0o/master
add scrollableTabBar onScroll Event
2 parents e63e6be + 90addb4 commit 50145bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ScrollableTabBar.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const ScrollableTabBar = React.createClass({
2828
textStyle: Text.propTypes.style,
2929
renderTab: React.PropTypes.func,
3030
underlineStyle: View.propTypes.style,
31+
onScroll:React.PropTypes.func,
3132
},
3233

3334
getDefaultProps() {
@@ -172,6 +173,7 @@ const ScrollableTabBar = React.createClass({
172173
showsHorizontalScrollIndicator={false}
173174
showsVerticalScrollIndicator={false}
174175
directionalLockEnabled={true}
176+
onScroll={this.props.onScroll}
175177
bounces={false}
176178
scrollsToTop={false}
177179
>

0 commit comments

Comments
 (0)