Components
ActivityIndicator
This example is composed with Storybook args. Open the interactive workbench to change its props and inspect the generated API controls.
Import
import { ActivityIndicator } from '@simal/ui/nativewindui';Props
| Prop | Values | Default | Description |
|---|---|---|---|
size | small · large | "large" | Two fixed sizes only, matching the platform spinner. small is the one that fits inside a button or a row. |
color | — | — | Defaults to the primary colour. Override it when the spinner sits on a filled surface. |
Examples
Sizes
<View className="flex-row items-center gap-8">
<ActivityIndicator size="small" />
<ActivityIndicator size="large" />
</View>Inline With Label
How it reads in context — the most common use is a blocking load state.
<View className="flex-row items-center gap-3">
<ActivityIndicator size="small" />
<Text color="tertiary">Loading…</Text>
</View>