React Native · Components
Progress
Progress bar.
2 exports
Live example
The preview runs in the browser with the web component; the native component takes the same props and looks the same on iOS and Android.
Preview
Loading66%
Code
Events
- Events appear here when you interact with the preview.
Import
Progress
componentProgress bar. When the value changes the bar slides with the native driver (only transform); smooth even while JS is busy.
Examples
ProgressProps
interfaceProps of Progress.
| Name | Type | Default | Description |
|---|---|---|---|
value? | number | null | Value (0–max). With null or when omitted it is indeterminate: the bar slides from left to right. | |
max? | number | 100 | Maximum value. |
label? | ReactNode | Label on top. | |
showValue? | boolean | ReactNode | Value in the top right: true for a percentage (40%), or your own text ("3 / 10"). | |
valueText? | string | Value text read to screen readers (e.g. "3 / 10 files"). | |
tone? | Tone | "primary" | Color. |
size? | keyof typeof HEIGHT | "md" | Thickness: 4, 8, 12 pixels. |
accessibilityLabel? | string | Screen reader label (when the label is not text). | |
style? | StyleProp<ViewStyle> | Container style. |