@@ -142,9 +142,9 @@ class ParallaxSwiper extends Component {
142142 { showProgressBar && (
143143 < View
144144 style = { {
145- width : vertical ? progressBarStyle . height : this . state . width ,
146- height : vertical ? this . state . height : progressBarStyle . height ,
147- top : vertical ? - this . state . height : - progressBarStyle . height ,
145+ width : vertical ? progressBarStyle . size : this . state . width ,
146+ height : vertical ? this . state . height : progressBarStyle . size ,
147+ top : vertical ? - this . state . height : - progressBarStyle . size ,
148148 backgroundColor : progressBarStyle . backgroundColor ,
149149 } }
150150 >
@@ -227,7 +227,7 @@ ParallaxSwiper.propTypes = {
227227 scrollToIndex : PropTypes . number ,
228228 showProgressBar : PropTypes . bool ,
229229 progressBarStyle : PropTypes . shape ( {
230- height : PropTypes . number ,
230+ size : PropTypes . number ,
231231 backgroundColor : PropTypes . string ,
232232 valueBackgroundColor : PropTypes . string ,
233233 } ) ,
@@ -247,7 +247,7 @@ ParallaxSwiper.defaultProps = {
247247 scrollEnabled : true ,
248248 showProgressBar : false ,
249249 progressBarStyle : {
250- height : 4 ,
250+ size : 4 ,
251251 backgroundColor : 'rgba(255,255,255,0.25)' ,
252252 valueBackgroundColor : 'white' ,
253253 } ,
0 commit comments