ProgressBar
Determinate 0–100 ARCUI progress with optional label/value text, disabled state, and UI-thread fill animation.
ProgressBar represents measurable completion. The semantic value stays in React props while fill movement and visual state interpolation run through Reanimated.
Usage
import { ProgressBar } from "react-native-arc-ui";
<ProgressBar value={64} />;value defaults to 0, must be finite, and is clamped to 0–100.
<ProgressBar value={-10} /> // visual/semantic result: 0
<ProgressBar value={135} /> // visual/semantic result: 100A non-finite runtime value is a semantic API error and throws clearly.
Label and displayed value
<ProgressBar
label="Uploading"
value={64}
showValue
/>showValue displays the clamped percentage. Decimal progress is preserved visually in the displayed string, while the native accessibility now value is normalized to an integer for platform range semantics.
If accessibilityLabel is omitted, label becomes the default accessible name.
Disabled state
<ProgressBar value={25} disabled />disabled is semantic React state. ARCUI animates toward the disabled visual color but keeps native accessibility state tied to the actual boolean prop, not intermediate animation progress.
Geometry
<ProgressBar
value={50}
height={6}
radius={3}
/>height and radius accept finite non-negative numbers. Invalid cosmetic overrides report in development and fall back to tokens.sizings.progressBar.height / tokens.radius.progressBar.
Fill implementation
The fill always occupies the full track width and progress is represented with scaleX:
track width stays stable
fill scaleX = clampedValue / 100This keeps continuous progress updates transform-based on the UI thread instead of animating layout width.
Native surface
ProgressBar inherits the safe ViewProps surface after reserving progressbar role/value semantics. Use root style, testID, and compatible accessibility overrides normally.
Testing
With testID="upload-progress":
upload-progress
upload-progress-label
upload-progress-value
upload-progress-track
upload-progress-fillLabel/value descendants only exist when the corresponding content is rendered.
API Reference
Also inherits: Omit<
ViewProps,
| "children"
| "accessible"
| "accessibilityRole"
| "accessibilityState"
| "accessibilityValue"
| "role"
| "aria-disabled"
| "aria-valuemin"
| "aria-valuemax"
| "aria-valuenow"
>
| Prop | Type | Default | Description |
|---|---|---|---|
| value? | number | 0 | Current progress value. Finite values are clamped to the 0–100 range. |
| label? | string | — | Optional visual label displayed above the progress track. Also becomes the default accessibility label unless the consumer provides accessibilityLabel explicitly. |
| showValue? | boolean | false | Displays the current clamped percentage on the right side of the header. |
| disabled? | boolean | false | Applies the disabled visual state and accessibility state. |
| height? | number | — | Track height in pixels. Falls back to tokens.sizings.progressBar.height. |
| radius? | number | — | Track radius in pixels. Falls back to tokens.radius.progressBar. |
Generated from the ARCUI 1.1.x TypeScript source snapshot. Native inherited props remain available through the referenced React Native surface.
Motion
Fill progress and disabled-state transitions use progressBarAnimations with global animation fallback. ARCUI applies Reanimated's system Reduced Motion handling to these timing transitions.
Theme colors are derived independently from progress so theme changes do not alter semantic completion.
Performance
The component cancels an active visual transition before retargeting to a new value/state. Frame-level work is limited to transform/color interpolation on the UI thread; React only observes the discrete prop changes you provide.
Accessibility
The root exposes native progressbar semantics:
min = 0
max = 100
now = normalized clamped value
disabled = disabled propVisible label/value descendants are marked non-accessible so the progressbar root is not announced multiple times.
Theming
Relevant token areas include:
colors.*.progressBar
sizings.progressBar
radius.progressBar
typography.progressBar
progressBarAnimations
animations
typography.maxFontSizeMultiplierTry it live
Explore ProgressBar interactively in Expo Snack.
Open ProgressBar in Expo Snack ↗