-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(react-native): incorrect starting position on reanimated floating…
… animation (#1139) The floating view on renimated animation was broken because the initial drag always had start position as 0. Upon a lot of research I found that we should not use useRef objects inside gesture callbacks. This is because the JS variable updates are not sent to UI thread. Instead the alternative is to do useSharedValue.. now the value is shared between JS and UI thread! probably before we had an older gesture navigator version and it worked. Upon some update this behaviour changed.
- Loading branch information
1 parent
cc247f0
commit 8d09012
Showing
1 changed file
with
43 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters