A ScrollView that moves in a browser as iOS's does, dragged by the mouse, gliding after a throw, its ends stretching.
import { ElasticScrollView } from "@plexui/react-native"
| iOS 26 | Android |
|---|
| Native component | Scroll view (UIScrollView) | Scroll view |
| Look | On a phone the platform's own scroll; in a browser UIScrollView's drag, glide and rubber band | On a phone the platform's own scroll; in a browser the same drag, glide and rubber band |
| Prop | Type | Default | Description |
|---|
horizontal | boolean | false | Scrolls across; the drag, the glide and the rubber band run along it |
scrollEnabled | boolean | true | Off, the scroll does not move, by the mouse either |
alwaysBounceHorizontal | boolean | false | Content that fits across still stretches when it is pulled, by a drag or a wheel; without it it stays still |
alwaysBounceVertical | boolean | false | Content that fits down still stretches when it is pulled, by a drag or a wheel; without it it stays still |
pagingEnabled | boolean | false | Rests on pages the view's length: one page a drag, a swipe or a wheel's notch |
snapToInterval | number | — | Rests on every interval: the stop nearest where a drag's glide would end, the next past a trackpad's flick |
snapToAlignment | "start" | "center" | "end" | "start" | Where an interval's stop puts its card in the view |
snapToOffsets | number[] | — | Rests on these offsets, and the ends |
disableIntervalMomentum | boolean | false | A flick rests on the next stop from where it is let go, however fast |
decelerationRate | "normal" | "fast" | number | "normal" | The share of a glide's speed kept each millisecond: 0.998 normal, 0.99 fast |
ref | Ref<ScrollView> | — | The ScrollView's ref |
...ScrollViewProps | ScrollViewProps | — | Every prop of React Native's ScrollView |