Skip to main content

Reorderable Grid

Demonstrates a sortable grid using DraxList with numColumns.

Key Concepts

  • Grid layoutnumColumns creates multi-column grid
  • 2D reorder — items shift both horizontally and vertically
  • Same API — identical to sortable list, just add numColumns

Features Shown

FeatureHow
numColumnsMulti-column grid layout
DraxListSame convenience wrapper as list
Slot detectionPosition-based grid slot calculation

Source Code

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