File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/components/progressBar Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ class ProgressBar extends PureComponent<Props, State> {
115
115
const { fullWidth, progressColor} = this . props ;
116
116
const borderRadius = fullWidth ? styles . fullWidthProgressBorderRadius : styles . inlineBorderRadius ;
117
117
const progressStyle = {
118
- right : this . state . containerWidth ,
118
+ right : Constants . isRTL ? undefined : this . state . containerWidth ,
119
119
backgroundColor : progressColor || DEFAULT_COLOR
120
120
} ;
121
121
@@ -137,10 +137,11 @@ class ProgressBar extends PureComponent<Props, State> {
137
137
138
138
render ( ) {
139
139
const { style, testID} = this . props ;
140
- const { containerWidth} = this . state ;
140
+ const { containerWidth = 0 } = this . state ;
141
+ const outputRange = Constants . isRTL ? [ containerWidth , 0 ] : [ 0 , containerWidth ] ;
141
142
const newProgress = this . progressAnimation . interpolate ( {
142
143
inputRange : [ 0 , 100 ] ,
143
- outputRange : [ 0 , containerWidth || 0 ]
144
+ outputRange
144
145
} ) ;
145
146
146
147
return (
You can’t perform that action at this time.
0 commit comments