Skip to content

Commit

Permalink
Merge pull request #15 from tsdmrfth/feature/disable-vertical-pan-ges…
Browse files Browse the repository at this point in the history
…ture

feat: disable vertical gesture events
  • Loading branch information
tsdmrfth authored Apr 11, 2021
2 parents f51e3cd + 7422957 commit cdd9357
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"peerDependencies": {
"react": "*",
"react-native": "*",
"react-native-gesture-handler": "^1.10.3",
"react-native-gesture-handler": "^1.0.0",
"react-native-reanimated": "^2.0.0"
},
"jest": {
Expand Down
4 changes: 3 additions & 1 deletion src/Steve.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ export const Steve = ({ data, renderItem, keyExtractor, containerStyle }) => {
}

return (
<PanGestureHandler {...{ onGestureEvent }}>
<PanGestureHandler
activeOffsetX={[-1, 1]}
{...{ onGestureEvent }}>
<Animated.View style={[styles.container, containerStyle]}>
<Items/>
</Animated.View>
Expand Down

0 comments on commit cdd9357

Please sign in to comment.