Skeleton
Loading placeholder skeleton with a subtle pulse that holds still when Reduce Motion is on.
v0.2.0NativeWindStyleSheetiOSAndroidExpo Go
Preview
Installation
npx nativra-cli add skeletonWrites Skeleton.tsx to components/ui, rewrites imports to your aliases and records hashes in nativra.lock.json, along with 2 registry dependencies. Existing files are never overwritten without asking.
Want to try it first? Open it in the playground: a real React Native project in your browser, with this item installed by the CLI.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| width | number | string | "100%" | Width in points or percentage |
| height | number | string | 16 | Height in points or percentage |
| radius | "none" | "sm" | "md" | "lg" | "full" | "md" | Border radius |
Source
Exactly what the CLI writes, before your import aliases are applied.
Dependencies
Registry items
- useThemeColorsHookReturns the installed theme's semantic colors for the current light/dark scheme, and the installed style's tokens and helpers. Used by every component.
- useReducedMotionHookSubscribes to OS-level Reduce Motion accessibility preferences on iOS and Android so animations degrade gracefully.