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

AnimationExperimental positionX/Y #903

Closed
finalquest opened this issue Apr 17, 2015 · 1 comment
Closed

AnimationExperimental positionX/Y #903

finalquest opened this issue Apr 17, 2015 · 1 comment
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@finalquest
Copy link

Hi.
I know that the whole animation library is very experimental. As is state in the Class name.
But I'm trying to use it to do a simple translation animation and I've been facing some issues.
I have a whole screen view which I want to move over the Y axis offscreen by 80px.
When I used -80 as the toValue, the screen was moved out of the screen almost completly.
Debuggin the RCTAnimationExperimentalManager I see that the starting point of the view is 281 instead of 0.
I dont know if I'm setting some wrong style or flex layout, or if this is inteded.

Regards.

@brentvatne
Copy link
Collaborator

Hi @finalquest - I've tried to use this library myself and ran into a bunch of issues with how it determined start and end values. I'd recommend using react-tween-state for now, you can see react-native-modal for an example of how I have used it. My current understanding of the animation module is that going to be replaced entirely, so I wouldn't use it unless I had to. Let me know if your issue persists with react-tween-state and I will reopen this issue!

@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

3 participants