1Animated.parallel([
2 Animated.timing(this.state.opacity, {
3 toValue: 0,
4 duration: 300
5 }),
6 Animated.timing(this.state.height, {
7 toValue: 0,
8 duration: 300
9 })
10]).start(() => {
11 // callback
12});