Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flip card no longer working with style prop using a function with animated values. #42

Open
DigohD opened this issue Aug 17, 2017 · 0 comments

Comments

@DigohD
Copy link
Contributor

DigohD commented Aug 17, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant