0
アニメーションが終了するとコードを実行したいと思います。どうしたらいいですか? 私の例:最後のアニメーションが終了するとReact-native:アニメーションが終了するとコードを実行します
showMsg(){
Animated.sequence([
Animated.timing(
this.state.bottom,
{
toValue: 0,
duration: 500
}),
Animated.delay(1000),
Animated.timing(this.state.bottom,
{
toValue: -50,
duration: 500
}),
]).start();
}
私はこのコードを実行することを望む:
this.setState({
msg: '',
});
ありがとうございました。