How to apply animated to a custom component which accepts props for rendering #1218
Unanswered
soumalya004728o
asked this question in
Support
Replies: 1 comment
-
Could you use an example in a sandbox or something ? |
Beta Was this translation helpful? Give feedback.
0 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.
-
I have a custom component in react named
HomeContent
which accepts a number of props.As written in official website I did this:
const animatedHomeContent = animated(HomeContent);
Then to render the component I do
<animatedHomeContent id={1} avatar="O" image="..." image_title="Onion" title=" Medium Sized Onions" subtitle="November 08, 2020" desc="Onions from farms of Nasik" price="74" quantity="1kg" />
But Nothing is getting rendered. I can't understand how to implement it. Please help
Beta Was this translation helpful? Give feedback.
All reactions