Skip to main content

Kanban Board Experimental

Demonstrates cross-container drag — moving items between sortable columns (kanban board pattern).

Key Concepts

  • useSortableBoard — board-level coordinator
  • SortableBoardContainer — monitoring wrapper for the board
  • Phantom slots — target column reserves space for incoming item
  • Smooth transfers — hover covers the transition between columns

Features Shown

FeatureHow
useSortableBoardBoard-level coordinator with onTransfer
SortableBoardContainerWraps all columns, detects cross-boundary drags
Per-column useSortableListEach column manages its own reorder state
Cross-container transferItems move between columns on drop

Source Code

example/app/(tabs)/kanban-board.tsx
// Full source available at:
// https://github.com/nuclearpasta/react-native-drax/blob/main/example/app/(tabs)/kanban-board.tsx