Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions FlipToggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import {
TouchableOpacity,
Image,
Animated,
Easing
Easing,
I18nManager,
} from 'react-native';

import PropTypes from 'prop-types';
Expand Down Expand Up @@ -111,7 +112,7 @@ class FlipToggle extends React.Component {
toValue = 0;
}
Animated.timing(this.offsetX, {
toValue: toValue,
toValue: I18nManager.isRTL?toValue *-1 :toValue,
duration: 300,
useNativeDriver: true,
}).start();
Expand Down