Skip to content

Commit

Permalink
SwipeButton: enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloudis committed Jun 27, 2024
1 parent 70cc712 commit 9d27690
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions assets/images/SVG/Caret Right alt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions components/SwipeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Dimensions
} from 'react-native';

import CaretRight from '../assets/images/SVG/Caret Right.svg';
import CaretRight from '../assets/images/SVG/Caret Right alt.svg';
import { themeColor } from '../utils/ThemeUtils';

interface SwipeButtonProps {
Expand Down Expand Up @@ -58,7 +58,7 @@ const SwipeButton: React.FC<SwipeButtonProps> = ({
e: GestureResponderEvent,
gesture: PanResponderGestureState
) => {
if (gesture.dx > maxTranslation * 0.6) {
if (gesture.dx > maxTranslation * 0.95) {
onSwipeSuccess();
Animated.spring(pan, {
toValue: maxTranslation,
Expand Down

0 comments on commit 9d27690

Please sign in to comment.