Skip to content

Commit a1ec06e

Browse files
tareqdayyagitim
authored andcommitted
added following props to ScrollView: (#177)
- nestedScrollEnabled - disableIntervalMomentum
1 parent 8b3b9ef commit a1ec06e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/SortableList.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ export default class SortableList extends Component {
2929
autoscrollAreaSize: PropTypes.number,
3030
rowActivationTime: PropTypes.number,
3131
manuallyActivateRows: PropTypes.bool,
32+
nestedScrollEnabled: PropTypes.bool,
33+
disableIntervalMomentum: PropTypes.bool,
3234

3335
renderRow: PropTypes.func.isRequired,
3436
renderHeader: PropTypes.func,
@@ -192,7 +194,7 @@ export default class SortableList extends Component {
192194
}
193195

194196
render() {
195-
let {contentContainerStyle, innerContainerStyle, horizontal, style, showsVerticalScrollIndicator, showsHorizontalScrollIndicator} = this.props;
197+
let {contentContainerStyle, innerContainerStyle, horizontal, style, showsVerticalScrollIndicator, showsHorizontalScrollIndicator, nestedScrollEnabled, disableIntervalMomentum} = this.props;
196198
const {animated, contentHeight, contentWidth, scrollEnabled} = this.state;
197199
const containerStyle = StyleSheet.flatten([style, {opacity: Number(animated)}])
198200
innerContainerStyle = [
@@ -211,6 +213,8 @@ export default class SortableList extends Component {
211213
return (
212214
<View style={containerStyle} ref={this._onRefContainer}>
213215
<ScrollView
216+
nestedScrollEnabled={nestedScrollEnabled}
217+
disableIntervalMomentum={disableIntervalMomentum}
214218
refreshControl={refreshControl}
215219
ref={this._onRefScrollView}
216220
horizontal={horizontal}

0 commit comments

Comments
 (0)