diff --git a/lib/FlipCard.js b/lib/FlipCard.js index 031dc45..21cbd5f 100644 --- a/lib/FlipCard.js +++ b/lib/FlipCard.js @@ -6,7 +6,8 @@ import PropTypes from "prop-types"; import { View, TouchableOpacity, - Animated + Animated, + Platform } from "react-native"; import S from './Style.js' @@ -257,11 +258,15 @@ export class Back extends Component { var transform = [] if (this.props.flipHorizontal) { transform.push({scaleX: -1}) - transform.push({perspective: this.props.perspective}) + if (Platform.OS === "android") { + transform.push({perspective: this.props.perspective}) + } } if (this.props.flipVertical) { transform.push({scaleY: -1}) - transform.push({perspective: this.props.perspective}) + if (Platform.OS === "android") { + transform.push({perspective: this.props.perspective}) + } } return (