1
React Native가 포함 된 Animated
을 사용하는 애니메이션은 상당히 커질 수 있으며 특히 많은 파일이있는 경우 많은 공간을 차지할 수 있습니다. 별도의 파일에 포함시킬 수있는 방법이 있습니까? 그렇다면 어떻게 호출할까요?네이티브 애니메이션을 별도의 파일로 처리하십시오.
Animated.sequence([
Animated.timing(this.state.move,{
toValue: {x: 50, y: 100},
duration:400
}),
Animated.timing(this.state.move,{
toValue: {x: 0, y: 0,
duration:400,delay:400
}),
]).start()