Mobile › Feedback
ProgressBar and Spinner
Show how far a task has got, or that something is loading.
Installation
npx expo install plankui-mobile react-native-safe-area-context expo-hapticsUsage
import { ProgressBar, Spinner } from "plankui-mobile";
<ProgressBar value={0.62} accessibilityLabel="Upload progress" />
<ProgressBar accessibilityLabel="Loading" /> {/* no value: indeterminate */}
<Spinner />iOS and Android
iOS: A thin 4 pt bar and the grey iOS activity indicator.
Android: A 4 dp bar with rounded ends and the accent-coloured Material spinner. Both stop moving when reduce motion is on.
API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | – | 0 to 1. Leave out for an indeterminate bar. |
| accessibilityLabel | string | "Progress" | What is in progress. |
Spinner
| Prop | Type | Default | Description |
|---|---|---|---|
| size | "small" | "large" | "small" | Spinner size. |
| accessibilityLabel | string | "Loading" | What is loading. |