更新时间:2023-01-08 15:28:45
好的,找到解决方案了.
Ok, found the solution.
问题是在我的 Animated.View 中使用了样式组件.
Problem was using styled-components for my Animated.View.
替换
const KnobAnimated = Animated.createAnimatedComponent(styled.View`
background-color: ${PRIMARY_COLOR};
width: 100%;
position: absolute;
bottom: 0;
left: 0;
overflow: hidden;
`)
使用更传统"的 Animated.View(并使用样式表对其进行样式设置),它可以工作.
with a more "conventional" Animated.View (and using a Stylesheet to style it), it works.