-
Notifications
You must be signed in to change notification settings - Fork 90
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
Retrieve Coordinates after moving #131
Comments
What you need is to access the
|
@shabaz-ejaz That is not working...
and only move it a tiny little bit, I get the following values: |
Do you mind expanding on this a bit? |
@thijs-qv Di you find a solution to this? It seems close to impossible ;) |
Unfortunately not, no. I didn’t want to spend too much time on it so in the end I removed this lib entirely and just made a few preset locations for my button which the user can choose from. |
I had this same problem and was finally able to figure it out. See my comment in this issue |
I want to retrieve the coordinates of the draggable once it has been moved and write it to the store, so that once the app is closed, I can retrieve the coordinates to position the draggable where it was before the user closed the App.
Currently my draggable is inside a
<View />
that hast100%
height and width.Currently I am passing it the position
x
andy
statically with 0. I need to pass it dynamically. I thinkonDragRelease()
is the right method for this. But, whatever I pass it fromgestureState
, let it bemoveX
,x0
, ... That is the wrong position for the draggable. After releasing the draggable, it jumps to a weird position, not where it was released. How would I retrieve the precise coordinates of the draggable, after is has been moved and released?The text was updated successfully, but these errors were encountered: