Skip to content

Commit

Permalink
Merge pull request #49 from mkozhukharenko/patch-1
Browse files Browse the repository at this point in the history
 #46 Back side on IOS is blured
  • Loading branch information
moschan authored Oct 15, 2017
2 parents 4d6c446 + b4dd2ef commit 26d51d6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/FlipCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import PropTypes from "prop-types";
import {
View,
TouchableOpacity,
Animated
Animated,
Platform
} from "react-native";

import S from './Style.js'
Expand Down Expand Up @@ -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 (
Expand Down

0 comments on commit 26d51d6

Please sign in to comment.