I'm using "react-native": "0.59.10" "react-native-reanimated": "^1.3.0" with typescript I'm getting type error for transform properties
const Example = () => {
const { translationX, gestureHandler } = horizontalPanGestureHandler()
return (
<View style={styles.container}>
<PanGestureHandler {...gestureHandler}>
<Animated.View style={{ transform: [{ translateX: translationX }] }} />
</PanGestureHandler>
</View>
)
}
You can just update react-native-reanimated
to latest version (currently 1.13.0
) and problem with style
and transform
will disappear.