Elastic Scroll View

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"

Examples

Overview

Platforms

iOS 26Android
Native componentScroll view (UIScrollView)Scroll view
LookOn a phone the platform's own scroll; in a browser UIScrollView's drag, glide and rubber bandOn a phone the platform's own scroll; in a browser the same drag, glide and rubber band

API

PropTypeDefaultDescription
horizontalbooleanfalseScrolls across; the drag, the glide and the rubber band run along it
scrollEnabledbooleantrueOff, the scroll does not move, by the mouse either
alwaysBounceHorizontalbooleanfalseContent that fits across still stretches when it is pulled, by a drag or a wheel; without it it stays still
alwaysBounceVerticalbooleanfalseContent that fits down still stretches when it is pulled, by a drag or a wheel; without it it stays still
pagingEnabledbooleanfalseRests on pages the view's length: one page a drag, a swipe or a wheel's notch
snapToIntervalnumber—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
snapToOffsetsnumber[]—Rests on these offsets, and the ends
disableIntervalMomentumbooleanfalseA 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
refRef<ScrollView>—The ScrollView's ref
...ScrollViewPropsScrollViewProps—Every prop of React Native's ScrollView