Answer the question
In order to leave comments, you need to log in
How to animate the opening block?
There is a block with floating height. Initially, it is closed, when clicked, it opens, how can I animate the opening? If you know the height, then it's not a problem, Animating.timing is just right, but there is no height.
Answer the question
In order to leave comments, you need to log in
Usually this library is used to solve this problem react-native-collapsible
https://www.npmjs.com/package/react-css-collapse Will
this work?
I implemented it with a height for a specific element, passed it through props.
Somehow it turned out to be adaptive when explicitly passing null or undefined, but I don’t remember anymore, it didn’t always work correctly, depending on whether the element is absolute.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question