diff --git a/index.js b/index.js index 535fb3d..cb727b7 100644 --- a/index.js +++ b/index.js @@ -79,6 +79,7 @@ export default class ScrollPicker extends React.Component { onMomentumScrollEnd={this.onMomentumScrollEnd} onScrollBeginDrag={this.onScrollBeginDrag} onScrollEndDrag={this.onScrollEndDrag} + nestedScrollEnabled={this.props.nestedScrollEnabled} > {header} {this.props.dataSource.map(this.renderItem.bind(this))} @@ -214,6 +215,7 @@ ScrollPicker.propTypes = { activeItemTextStyle: PropTypes.object, onMomentumScrollEnd: PropTypes.func, onScrollEndDrag: PropTypes.func, + nestedScrollEnabled: PropTypes.bool, }; ScrollPicker.defaultProps = { dataSource: [1, 2, 3], @@ -230,4 +232,4 @@ ScrollPicker.defaultProps = { }, itemTextStyle: {fontSize: 20, lineHeight: 26, textAlign: 'center', color: '#B4B4B4'}, activeItemTextStyle: {fontSize: 20, lineHeight: 26, textAlign: 'center', color: '#222121'} -}; \ No newline at end of file +};