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-haptics

Usage

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

PropTypeDefaultDescription
valuenumber–0 to 1. Leave out for an indeterminate bar.
accessibilityLabelstring"Progress"What is in progress.

Spinner

PropTypeDefaultDescription
size"small" | "large""small"Spinner size.
accessibilityLabelstring"Loading"What is loading.