I have been trying to do:
<Animated.View
style={[{
height: this.collapse.interpolate({
inputRange: [0, 1],
outputRange: ['0%', '100%'],
}),
}]}
>
{children}
</Animated.View>
But the one item from the list take the FlatList
total height.
I have tried to use minHeight
, but same problem.
How can I make my animated height on 100%?
Reproduction
Snack : https://snack.expo.io/@kopax/petrified-cookies
With a browser, the height is not of the height of the <FlatList />
, but on native, it looks like this:
How can I use a dynamic height for this animation?