Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6214

getting type error for style transform properties when with react-native-reanimated

$
0
0

I'm using"react-native": "0.59.10""react-native-reanimated": "^1.3.0"with typescriptI'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>  )}

Here's the error I'm gettingType error


Viewing all articles
Browse latest Browse all 6214

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>