Expo App UIExpo App UI
Components

Skeleton

Animated placeholder for loading states. Shapes for lines, circles, and rectangles.

Installation

npx expo-app-ui add skeleton

Usage

import Skeleton from "@/components/ui/skeleton";

<Skeleton width={200} height={16} />
<Skeleton circle size={48} />
<Skeleton width="100%" height={120} borderRadius={12} />

Props

PropTypeDefaultDescription
widthDimensionValue'100%'Width
heightDimensionValue16Height
borderRadiusnumber6Corner radius
circlebooleanfalseRender as a circle
sizenumber40Circle diameter
baseColorstring'#E5E7EB'Base color
highlightColorstring'#F3F4F6'Highlight color
durationnumber1100Pulse cycle in ms
animatebooleantrueDisable to render static
styleStyleProp<ViewStyle>-Container override

Accessibility

  • accessibilityRole="progressbar"
  • accessibilityLabel="Loading"

On this page

Find this useful?

Buy me a coffee