我正在使用 "react-native": "0.59.10" "react-native-reanimated": "^1.3.0" 和 typescript 我收到转换属性的类型错误
const Example = () => {
const { translationX, gestureHandler } = horizontalPanGestureHandler()
return (
<View style={styles.container}>
<PanGestureHandler {...gestureHandler}>
<Animated.View style={{ transform: [{ translateX: translationX }] }} />
</PanGestureHandler>
</View>
)
}