Spinner centers a native activity indicator and optional caption.
Usage
Props
Spinner has the combined public type of React Native ActivityIndicatorProps and ViewProps. Props other than label and style are passed to ActivityIndicator.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Indicate progress with an optional status label
Spinner centers a native activity indicator and optional caption.
import { Spinner } from '@amisi-mobile-starter/ui';
export const LoadingState = () => (
<Spinner label="Loading account…" size="large" />
);
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | undefined | Caption rendered below the indicator. |
style | StyleProp<ViewStyle> | undefined | Style applied to the outer wrapper. |
color | string | Current spinner theme color | Native indicator color. |
size | ActivityIndicatorProps['size'] | React Native default | Native indicator size. |
Spinner has the combined public type of React Native ActivityIndicatorProps and ViewProps. Props other than label and style are passed to ActivityIndicator.Was this page helpful?