react-native-flip-card-view
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -16,9 +16,13 @@ import React from "react"; | ||
var FlipCard = React.createClass({ | ||
getInitialState(){ | ||
return { | ||
class FlipCard extends Component{ | ||
constructor(){ | ||
super(); | ||
this._flipToggleCard = this._flipToggleCard.bind(this); | ||
this._flippedCard = this._flippedCard.bind(this); | ||
this.flippedCardView = this.flippedCardView.bind(this); | ||
this.state = { | ||
animatedValue: new Animated.Value(0), | ||
isFlipped: true, | ||
} | ||
}, | ||
}; | ||
}; | ||
@@ -29,7 +33,7 @@ componentDidUpdate(prevProp, prevState) { | ||
} | ||
}, | ||
}; | ||
_flipToggleCard() { | ||
this.setState({isFlipped: !this.state.isFlipped}); | ||
}, | ||
}; | ||
@@ -43,3 +47,3 @@ _flippedCard() { | ||
}).start(); | ||
}, | ||
}; | ||
@@ -58,3 +62,3 @@ render() { | ||
</TouchableOpacity>); | ||
}, | ||
}; | ||
@@ -69,4 +73,4 @@ | ||
} | ||
}); | ||
} | ||
module.exports = FlipCard; |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "An animated flip card component for React Native", | ||
@@ -10,0 +10,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62
1042107
6