-
-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Labels
breaking changePotentially requires a breaking change to the libraryPotentially requires a breaking change to the librarydependenciesPull requests that update a dependency filePull requests that update a dependency filedeprecationsRelated to deprecations in Drax or related librariesRelated to deprecations in Drax or related librariesenhancementNew feature or requestNew feature or request
Description
🚧 WIP - This issue might change
👋 Hello @lafiosca. Thank you for all the work on this library!
Here's a list of the changes I've been working on. After we test them in production, we are willing to open pull requests and contribute to the main project.
Reanimated v3
- Replace
AnimatedwithReanimated -
animateSnapForwardprop on a successful drop in a receiver view - Animate based on scroll position as well (for receiver and dragged views and for
animateSnapForwardandanimateSnapBack) - Investigate
measure()on the UI thread: https://docs.swmansion.com/react-native-reanimated/docs/advanced/measure - Fix [iOS | Android] DragView does not return to the initial position after React Native 0.72.4 update #161
▶️ Video of Reanimated proof of concept: https://x.com/LunatiqueCoder/status/1721982083902394694?s=20
RN Gesture Handler v2
- gesture-handler-2.0 #166 👉 Update underlying react-native-gesture-handler from 1.8 to 2.x #140
- ☝️ While this was an easy one, we're blocked by Gesture.Pan() event callbacks are delayed when there are multiple GestureDetectors with Gesture.Pan() software-mansion/react-native-gesture-handler#2674.
This issue happens when there are a lot ofGestureDetectorsfrom the newgesture-handlerAPI. Reducing the number ofGestureDetectors(orDraxViewsin our case) will make the issue less annoying or even very hard to reproduce. -
useLegagyGestureHandlerprop if possible to try and avoid as many breaking changes as possible.
Update examples
- LunatiqueCoder/expo-drax-example which is forked from: nuclearpasta/react-native-drax-example.
pawel-napieracz, nutdanai-kpjr and luisjorge129
Metadata
Metadata
Assignees
Labels
breaking changePotentially requires a breaking change to the libraryPotentially requires a breaking change to the librarydependenciesPull requests that update a dependency filePull requests that update a dependency filedeprecationsRelated to deprecations in Drax or related librariesRelated to deprecations in Drax or related librariesenhancementNew feature or requestNew feature or request