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

Shrink via scaleXY Animation #1253

Closed
martco opened this issue May 12, 2015 · 3 comments
Closed

Shrink via scaleXY Animation #1253

martco opened this issue May 12, 2015 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@martco
Copy link

martco commented May 12, 2015

Currently I am able to animate <View /> growth using AnimationExperimental.startAnimation:

shrink

I would like to shrink instead of grow, however:

ccb64735-b914-48bb-bee5-94c91d9415f2

Here's the object I pass to startAnimation:

{ node: n, duration: 7000, easing: 'easeInOutCubic', property: 'scaleXY', toValue: [2,2] };

I've tried positive and negative number for the toValue.

How do I shrink?:

I've dug through the issues and have seen a few related things. Does the <View /> not have layout, and that's why I can't shrink?

Thanks!

@sophiebits
Copy link
Contributor

Have you tried a number between 0 and 1?

@martco
Copy link
Author

martco commented May 12, 2015

@spicyj yes but it still grows, not shrinks. I thought it was because I absolutely positioned the node, but I removed that and it still doesn't work.

@brentvatne
Copy link
Collaborator

@martco - this is a bug with AnimationExperimental that has come up on numerous occasions - the AnimationExperimental library is on its way out and I'd recommend using a plain react library such as react-tween-state, see #722

@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants