Currently working with the following versions: "react-native": "0.59.10" "react-native-reanimated": "^1.3.0" using TypeScript Encountering a type error related to transform properties.
const Example = () => {
const { translationX, gestureHandler } = horizontalPanGestureHandler()
return (
<View style={styles.container}>
<PanGestureHandler {...gestureHandler}>
<Animated.View style={{ transform: [{ translateX: translationX }] }} />
</PanGestureHandler>
</View>
)
}
The specific error message can be seenhttps://i.sstatic.net/AMoP6.png