Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added function to get gesterstate dx and dy when swiped #47

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

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