Skip to content

Commit 32afc94

Browse files
committed
support scrollEnabled prop for ScrollView
1 parent d4411cb commit 32afc94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/ScrollView/ScrollView.web.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class ScrollView extends Component {
166166
alwaysBounceVertical,
167167
style: ([
168168
styles.base,
169-
this.props.horizontal ? styles.horizontal : null,
169+
(this.props.horizontal && this.props.scrollEnabled) ? styles.horizontal : null,
170170
this.props.style,
171171
]: ?Array<any>),
172172
onTouchStart: this.scrollResponderHandleTouchStart,

0 commit comments

Comments
 (0)