Skip to main content

Scrolling

Demonstrates drag from a scrollable container to a drop zone. The scroll view auto-scrolls when dragging near edges.

Key Concepts

  • DraxScrollView — scrollable container with auto-scroll
  • Drag from scroll — items inside a scroll view can be dragged out
  • Auto-scroll — scrolls when finger approaches edges during drag

Features Shown

FeatureHow
DraxScrollViewWraps the scrollable item list
Auto-scrollEdges trigger scroll during drag
External dropItems can be dropped outside the scroll

Source Code

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