Shimmer Text

Text with a shimmer animation for loading and in-progress states, always on or toggled with a graceful stop.

import { ShimmerText, ShimmerableText } from "@plexui/react-native"

Examples

Overview

Platforms

iOS 26Android
Native componentNone: the Plex shimmer (SwiftUI's shimmering text is a modifier of its own)None: the Plex shimmer
LookA light band sweeping across the text every 3 secondsA light band, 160dp wide, crossing the text in 1.2 seconds

API

ShimmerText: always shimmering

PropTypeDefaultDescription
as"p" | "span" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div""div"The element it stands for; h1 to h6 are read as a heading
childrenReactNode—Text content to shimmer
size, weight, color, variant…TextProps—The props of Text, for the type and color
styleStyleProp<TextStyle>—Style of the text
containerStyleStyleProp<ViewStyle>—Style of the box around the text

ShimmerableText: controllable shimmer

PropTypeDefaultDescription
as"p" | "span" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div""div"The element it stands for; h1 to h6 are read as a heading
shimmerbooleanfalseWhether the shimmer animation is active
childrenReactNode—Text content to shimmer
size, weight, color, variant…TextProps—The props of Text, for the type and color
styleStyleProp<TextStyle>—Style of the text
containerStyleStyleProp<ViewStyle>—Style of the box around the text