【发布时间】:2020-04-23 17:27:55
【问题描述】:
我有一个 ScrollView,里面有一些 View,但我想在用户到达特定 View 并启动我的动画后启动动画。
例子:
<ScrollView style={{ width: DeviceWidth, height: DeviceWidth * 0.5 }}>
{/* When user position scroll is here,
is where I want to start the animation,
not since the page is loaded */}
<View style={{
width: DeviceWidth * 0.4,
height: DeviceWidth * 0.4,
resizeMode: "contain",
}}>
<ProgressBarAnimated
width={barWidth}
value={65}
backgroundColor="#F68D29"
height={40}
barAnimationDuration={6000}
/>
</View>
</ScrollView>
【问题讨论】:
标签: react-native animation view position scrollview