Skip to content

Instantly share code, notes, and snippets.

@browniefed
Created August 3, 2018 15:44
Show Gist options
  • Save browniefed/8240785699c98acf5549aaac1489f1bd to your computer and use it in GitHub Desktop.
Save browniefed/8240785699c98acf5549aaac1489f1bd to your computer and use it in GitHub Desktop.
<PanGestureHandler
maxPointers={1}
onGestureEvent={this.onGestureEvent}
onHandlerStateChange={this.onGestureEvent}
>
<Animated.View
style={[
styles.box,
{
transform: [
{
translateX: this.transX,
},
{
translateY: this.transY,
},
],
},
]}
/>
</PanGestureHandler>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment