react native run animation and update state at same time code example
Example: react native anination 2 valuse
Animated.parallel([
Animated.timing(this.state.opacity, {
toValue: 0,
duration: 300
}),
Animated.timing(this.state.height, {
toValue: 0,
duration: 300
})
]).start(() => {
// callback
});