Skip to Content
ARCUI

SkeletonLoader

ARCUI shimmer placeholder with rect, square, and circle discriminated variants and Reduced Motion-safe behavior.

SkeletonLoader preserves approximate content geometry while the real content is loading.

Usage

Rectangle is the default:

<SkeletonLoader width="100%" height={18} />

Rectangle

<SkeletonLoader
  variant="rect"
  width="100%"
  height={18}
  radius={6}
/>

Rect mode supports independent width, height, and radius. Width may use normal React Native DimensionValue forms such as percentages.

Square

<SkeletonLoader variant="square" size={48} />

Square uses one size for both dimensions and may customize radius.

Circle

<SkeletonLoader variant="circle" size={48} />

Circle owns its radius as size / 2. The public type intentionally excludes radius, width, and height in this mode.

Discriminated geometry

The public API models valid shape combinations directly:

Variantwidth / heightsizeradius
rect✓—✓
square—✓✓
circle—✓—

Cosmetic dimensions fall back safely through ARCUI number/dimension resolution.

Shimmer angle

<SkeletonLoader
  width="100%"
  height={18}
  angle={18}
/>

angle rotates only the visual shimmer band. Travel itself remains horizontal.

The shimmer width is derived from the measured skeleton width and tokens.skeletonAnimations.shimmerWidthRatio. ARCUI accounts for the extra visual footprint created by rotation so the band resets fully outside the skeleton.

Styling and composition

style is applied before ARCUI's final geometry style, so the variant dimensions/radius remain authoritative. Use style for non-conflicting properties such as margins, alignment, transforms, or positioning.

Compose multiple skeletons to approximate the final content hierarchy rather than placing one generic block over an entire screen.

Testing

testID targets the skeleton root directly. Internal SVG/gradient/shimmer layers are implementation details and intentionally do not expose descendant IDs.

API Reference

Rect Skeleton Loader

PropTypeDefaultDescription
angle?number—Shimmer-band angle in degrees. Falls back to tokens.skeletonAnimations.angle.
style?StyleProp<ViewStyle>——
testID?string——
variant?"rect"——
width?DimensionValue——
height?DimensionValue——
radius?number——

Square Skeleton Loader

PropTypeDefaultDescription
angle?number—Shimmer-band angle in degrees. Falls back to tokens.skeletonAnimations.angle.
style?StyleProp<ViewStyle>——
testID?string——
variant"square"required—
size?number——
radius?number——

Circle Skeleton Loader

PropTypeDefaultDescription
angle?number—Shimmer-band angle in degrees. Falls back to tokens.skeletonAnimations.angle.
style?StyleProp<ViewStyle>——
testID?string——
variant"circle"required—
size?number——

Generated from the ARCUI 1.1.x TypeScript source snapshot. Native inherited props remain available through the referenced React Native surface.

Motion

The only continuously animated shimmer property is horizontal translation. Gradient stops and band rotation remain static.

Reduced Motion removes the shimmer entirely while preserving the final placeholder geometry/background.

Performance

ARCUI measures the rendered root only to resolve shimmer travel. Layout state is updated only when width/height materially changes, while the repeating translation stays on the UI thread.

Accessibility

SkeletonLoader is explicitly hidden from the accessibility tree because placeholder geometry is not meaningful content. The surrounding application should expose its real loading/busy semantics where appropriate.

Theming

Relevant token areas include:

colors.*.skeleton
sizings.skeleton
radius.skeleton
skeletonAnimations
animations

Try it live

Explore SkeletonLoader interactively in Expo Snack.

Open SkeletonLoader in Expo Snack ↗

On this page