Skip to content

Commit

Permalink
moschan#46 Back side on IOS is blured
Browse files Browse the repository at this point in the history
since 'perspective' prop cause the back side on IOS blurred - we can remote it at all (it will affect nothing) and leave only for Android.
  • Loading branch information
mkozhukharenko authored Oct 9, 2017
1 parent 2a97bb4 commit b4dd2ef
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 b4dd2ef

Please sign in to comment.