问题描述
在 react-native@0.64.1,@react-native-community/slider@3.0.3
我尝试使用 react native Animated 使 Slider 具有不透明过渡,但是当我这样做时, 组件不能拖动。
像这样:
<Animated.View style={{opacity: this.controlBaranimatedOpacity}} >
<Slider
style={style.videoSlider}
value={this.state.playPosition}
minimumValue={0}
maximumValue={this.state.videoFullTime}
minimumTrackTintColor={...}
maximumTrackTintColor={...}
thumbTintColor={...}
onTouchStart={() => this.handletouchStart()}
onSlidingComplete={() => this.hanleSlidingComplete()}
onValueChange={value => this.handleValueChange(value)}
/>
</Animated.View>
我尝试了一些解决方法,例如 set pointerEvents 但没用,无法收到滑块的任何响应,有人遇到过类似问题吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)