Skip to content
Discussion options

You must be logged in to vote

@jakub-gonet have a look at code below;

const style = useAnimatedStyle(() => {
    return {
      transform: [
        { scale: scale.value },
      ]
    }
  })

  <PinchGestureHandler onGestureEvent={panHandler}>
        <Animated.View style={[styles.paintContainer, style]} />
      </PinchGestureHandler>

Above code is what I'm doing in order to scale it. I want to rotate it too. So according to you I can do it like below

...

  <PinchGestureHandler onGestureEvent={panHandler}>
     <RotationGestureHandler
        onGestureEvent={this._onRotateGestureEvent}
        onHandlerStateChange={this._onRotateHandlerStateChange}>
                       <Animated.View style={[styles.paintContainer, 

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@MuhammadRafeh
Comment options

@jgonet
Comment options

Comment options

You must be logged in to vote
2 replies
@jgonet
Comment options

@MuhammadRafeh
Comment options

Answer selected by MuhammadRafeh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants