Skip to content

Conversation

@BJSam
Copy link

@BJSam BJSam commented Jan 12, 2021

onSwiping gives x,y values but when horizontalSwipe or verticalSwipe is false x or y value will be zero. So, to get swipe direction when horizontalSwipe or verticalSwipe is false I have created a function which returns dx and dy from gestureState in onPanResponderMove.

xXCHINNAXx added 6 commits January 12, 2021 18:13
added 
onSwiping?: (x: number, y: number) => void;
onSwipeGuesterState?:(dx:number, dy:number) => void;
added onSwipeGuesterState function to  get dx and dy value. onSwiping gives x and y values but when horizontalSwipe is false x value will always be 0. In some cases (atleast in my case) dx and dy are required to detect swipe direction when horizontalSwipe  is false
added onSwipeGuesterState
added currentCardIndex func
added current card index func
current card index func added
@webraptor
Copy link
Owner

Please fix conflicts & remove console.log from the code.

@BJSam
Copy link
Author

BJSam commented Oct 7, 2022

It's been some time since I worked on this stuff. ls verify and merge the branch merge_gesterState_dx_dy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants