Skip to main content

Examples

The example/ directory contains an Expo Router app with 10 screens demonstrating all Drax features. Each example below includes a description, key concepts, and the full source code.

Running the Examples

cd example && yarn start

Use --clear flag after library source changes to bust the Metro cache.

Try It Live

Visit the live interactive demo to try the examples in your browser (Expo web export).

Example Screens

ExampleFeatures
Color Drag & DropFree-form DnD, drop acceptance, hover styles, snap alignment
Reorderable ListDraxList, animation presets, auto-scroll
Reorderable GridSortable grid, multi-column, numColumns
Drag HandlesDraxHandle, only grip starts drag
Drag BoundsdragBoundsRef, constrained drag area
Collision ModesCenter vs Intersect vs Contain
Kanban BoardCross-container drag, useSortableBoard
Knight MovesChess knight puzzle, conditional acceptance
ScrollingDraxScrollView, auto-scroll, drag from scroll
Stress Test100 items in a sortable list