I have a list of Animated.View
's placed inside a container component:
return (
<View>
{items.map(item => (
<Animated.View key={item.id} entering={FadeIn} exiting={FadeOut}>
<Text>{item.name}</Text>
</Animated.View>
))}
</View>
);
But when an item is removed, the parent height changes instantly, even though the item is still fading out.
How can I make the parent component wait for the child to fade out before changing its height?