ActivityIndicator
ActivityIndicator
Animated spinner that mirrors React Native’s ActivityIndicator but follows your theme.
Usage
Communicate background loading or blocking async work inline or full-screen.
Highlights
- Themed colors through token parser
- Hides automatically when not animating
When to use it
- You need to show indefinite progress for network calls.
- A button or FAB transitions into a loading state.
Examples
Default
Preview (Web)
import { ActivityIndicator } from 'react-native-molecules/components/ActivityIndicator'; export default function Example() { return <ActivityIndicator color="tertiary" size={30} animating />; }
| Prop | Type | Default | Description |
|---|---|---|---|
animating | boolean | undefined | — | Whether to show the indicator or hide it. |
hidesWhenStopped | boolean | undefined | — | Whether the indicator should hide when not animating. |
size | number | "small" | "large" | undefined | — | The color of the spinner. color?: string; /** Size of the indicator. |
color | string | undefined | — | — |