@@ -88,6 +88,8 @@ class ProgressStep extends Component {
8888
8989 render ( ) {
9090 const scrollViewProps = this . props . scrollViewProps || { } ;
91+ const viewProps = this . props . viewProps || { } ;
92+ const isScrollable = this . props . scrollable ;
9193 const buttonRow = this . props . removeBtnRow ? null : (
9294 < ProgressButtons
9395 renderNextButton = { this . renderNextButton }
@@ -97,7 +99,9 @@ class ProgressStep extends Component {
9799
98100 return (
99101 < View style = { { flex : 1 } } >
100- < ScrollView { ...scrollViewProps } > { this . props . children } </ ScrollView >
102+ { isScrollable
103+ ? < ScrollView { ...scrollViewProps } > { this . props . children } </ ScrollView >
104+ : < View { ...viewProps } > { this . props . children } </ View > }
101105
102106 { buttonRow }
103107 </ View >
@@ -122,8 +126,10 @@ ProgressStep.propTypes = {
122126 previousBtnTextStyle : PropTypes . object ,
123127 previousBtnDisabled : PropTypes . bool ,
124128 scrollViewProps : PropTypes . object ,
129+ viewProps : PropTypes . object ,
125130 errors : PropTypes . bool ,
126- removeBtnRow : PropTypes . bool
131+ removeBtnRow : PropTypes . bool ,
132+ scrollable : PropTypes . bool
127133} ;
128134
129135ProgressStep . defaultProps = {
@@ -133,7 +139,8 @@ ProgressStep.defaultProps = {
133139 nextBtnDisabled : false ,
134140 previousBtnDisabled : false ,
135141 errors : false ,
136- removeBtnRow : false
142+ removeBtnRow : false ,
143+ scrollable : true
137144} ;
138145
139146export default ProgressStep ;
0 commit comments