react-native-flip-card
react-native-flip-card copied to clipboard
Flip card no longer working with style prop using a function with animated values.
Hi!
My FlipCard has an animated style prop which animates margins and height in order to make it grow when flipped. When upgrading from my current version (3.4.1) to the latest version, I get a React Native error which complains about these animated values, stating something similar to: "marginHorizontal is not an animateable value". This is what the declaration looks like:
<FlipCard friction={10} perspective={1000} flipHorizontal={true} flipVertical={false} flip={this.state.isFlipped} clickable={false} style={cardWrapper(this.state.horGrowAnim, this.state.botGrowAnim)} onFlipped={(isFlipped)=> this.onFlip(isFlipped)}>
Thanks for any help/advice.