Components

Progress

Linear progress bar with label, size, and color variant options.

iOSAndroid
Preview Progress on your device

Scan with Expo Go

Download Expo Go, then scan the QR code to preview native components.

Installation

pnpm dlx @docyrus/cli add @docyrus/rn-progress
Required Packages(1 package)
pnpm add react-native-reanimated

Usage

import { Progress } from '@/components/docyrus-native/progress';

<Progress value={60} />
<Progress value={80} variant="success" showLabel />
<Progress value={30} size="lg" variant="warning" />

API Reference

PropTypeDefaultDescription
valuenumber—Progress value (0-100)
showLabelbooleanfalseShow percentage label
size'xs' | 'sm' | 'md' | 'lg''md'Track height size
variant'default' | 'secondary' | 'success' | 'warning' | 'destructive''default'Fill color variant
classNamestring—Additional CSS classes
labelClassNamestring—Label text CSS classes
trackClassNamestring—Track background CSS classes
fillClassNamestring—Fill bar CSS classes

Type Exports

TypeDescription
ProgressPropsProps for Progress component
ProgressSize'xs' | 'sm' | 'md' | 'lg'
ProgressVariant'default' | 'secondary' | 'success' | 'warning' | 'destructive'

On this page