C
C
Coder3212018-08-01 22:08:25
React
Coder321, 2018-08-01 22:08:25

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

3 answer(s)
D
Dimka Reactive, 2018-08-17
@Coder321

Usually this library is used to solve this problem react-native-collapsible

M
Mikhail Osher, 2018-08-01
@miraage

https://www.npmjs.com/package/react-css-collapse Will
this work?

K
KnightForce, 2018-10-03
@KnightForce

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 question

Ask a Question

731 491 924 answers to any question