Duolingo - Drag Sort Words
This example demonstrates the drag-and-drop word sorting animation from the Duolingo app, where users arrange words to form a correct sentence.
Source Code
Demo
Features
- Drag words from the word bank to the drop area
- Tap words to quickly add/remove them from the drop area
- Word displacement when dragging over other words
Implementation Details
The animation uses:
react-native-reanimatedfor smooth, performant animationsreact-native-gesture-handlerfor pan and tap gestures- Shared values for cross-thread communication between UI and JS threads