let animatedHeight = new Animated.Value(50); const animate = () => { animatedHeight.setValue(50); Animated.timing(animatedHeight, { toValue: 0,