Can I pass animatedProps to a component and transform them in the component? #7364
Unanswered
SitkaCharley
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hey @SitkaCharley! In general, you cannot modify The proper way to do this is to pass the Shared Value via props to another component. In your case, you should pass |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to create a component that accept one or more animated variables in a animatedProps object. It will transform these variables getting them from animatedProps to another variables in a new animatedProps object. I need that transformation because the animated component that will take the new animatedProps has another prop types. For example I have the following Test component that accepts 'radius' property. I want that 'animatedProps.radius' to animated 'r' property of 'AnimatedCircle':
Beta Was this translation helpful? Give feedback.
All reactions