Scroll Edge

The soft scroll edge of a screen with no bar at that edge: content under the status bar, or at the screen's bottom, muted.

import { ScrollEdge } from "@plexui/react-native"

A screen with a bar has its edge in the bar: Toolbar's background at the top, Tab Bar's fade at the bottom.

Examples

Overview

Platforms

iOS 27Android
Native componentScroll edge effect, softNone: the status bar's scrim
LookThe content softened under a wide haze and a veil of the screen's color, from the screen's edge to 34pt past the status barThe screen's color over a light blur under the status bar

API

PropTypeDefaultDescription
edge"top" | "bottom""top"Under the status bar, or at the bottom of the screen
scrolledbooleanfalseContent is under the edge; the top edge shows only then, the bottom one stays
fadeEndnumber—Top edge: where the fade ends, from the screen's top (a bar of buttons under the status bar). The edge then ends there: iOS's soft edge 34pt above it, so the content below the row stays sharp; Android draws the same veil in place of its scrim. Bottom edge: how far up from the screen's bottom it reaches over buttons that float, iOS's bottom bar edge raised to there; none on Android
itemsTopnumber—Bottom edge: the top of buttons that float with no bar of their own, from the screen's bottom. The soft edge reaches --scroll-edge-bottom-reach (46) above it; the fade takes it as its row's end. fadeEnd, given too, wins
background"soft" | "fade""soft"soft: iOS 27.2's soft edge, the content softened under a wide haze and a veil of the screen's color. fade: the screen's color alone, no blur, 85% down to the middle of the row's controls (26 above fadeEnd), easing out to nothing 32 past it; iOS and Android alike
progressAnimated.Value | AnimatedInterpolation—The edge's strength, 0 to 1, tied to the scroll (iOS shows it over the first 32 or so, SCROLL_EDGE.progress): scrollY.interpolate({ inputRange: [0, SCROLL_EDGE.progress], outputRange: [0, 1], extrapolate: 'clamp' }). The top edge then stands whatever scrolled says
canvasColorstringthe theme's backgroundThe color of the screen it fades into (a grouped screen's canvas)
testIDstring—Test id
styleStyleProp<ViewStyle>—Style of the edge. A numeric height on the top edge on iOS (a row of buttons under the status bar) blurs the content in full down to it, and the edge eases out over the 48pt below it