We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88695f5 commit 6a38370Copy full SHA for 6a38370
Bar.js
@@ -1,6 +1,6 @@
1
import React, { Component } from 'react';
2
import PropTypes from 'prop-types';
3
-import { Animated, Easing, View } from 'react-native';
+import { Animated, Easing, View, I18nManager } from 'react-native';
4
5
const INDETERMINATE_WIDTH_FACTOR = 0.3;
6
const BAR_WIDTH_ZERO_POSITION =
@@ -152,7 +152,7 @@ export default class ProgressBar extends Component {
152
{
153
translateX: this.state.progress.interpolate({
154
inputRange: [0, 1],
155
- outputRange: [innerWidth / -2, 0],
+ outputRange: [innerWidth / (I18nManager.isRTL ? 2 : -2), 0],
156
}),
157
},
158
@@ -176,4 +176,4 @@ export default class ProgressBar extends Component {
176
</View>
177
);
178
}
179
-}
+}
0 commit comments