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

How can I animate a draggable component #85

Open
ngioldasis opened this issue Mar 14, 2021 · 1 comment
Open

How can I animate a draggable component #85

ngioldasis opened this issue Mar 14, 2021 · 1 comment

Comments

@ngioldasis
Copy link

Hi,

I'm using react-native-draggable (thanks for sharing this) to show an Avatar at the top of my screen. So I created a Draggable component and passed my avatar in children. Everything works fine, until now.
However, I would like my (draggable) avatar to "appear" in a specific position (let's say on y=300, and then move automatically to y=0). I've tried with Animated API, but the component does not respond.

Is that possible?

Thanks,
Nektarios

@owenpriestley
Copy link

How are you moving the draggable? If you share some code it might be easier to troubleshoot.

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

2 participants