Skip to main content

ProgressBar

Usage

function ProgressBarUsage() {
return (
<View>
<ProgressBar value={60} />
</View>
)
}

Indeterminate

function ProgressBarIndeterminate() {
return <ProgressBar indeterminate />
}

Status

function ProgressBarStatuses() {
return (
<View>
<ProgressBar value={10} />
<ProgressBar value={20} status="accent" />
<ProgressBar value={30} status="success" />
<ProgressBar value={40} status="info" />
<ProgressBar value={50} status="warning" />
<ProgressBar value={60} status="error" />
</View>
)
}

Sizes

function ProgressBarSizes() {
return (
<View>
<ProgressBar value={10} size="small" />
<ProgressBar value={20} size="medium" />
<ProgressBar value={30} size="large" />
</View>
)
}

Custom

function ProgressBarCustom() {
return (
<View>
<ProgressBar indeterminate value={50} color="blue" trackColor="cyan" />
<ProgressBar value={20} color="red" trackColor="green" height={20} />
</View>
)
}

Props

PropData TypeDefault ValueDescription
ExtendsBaseUIProps--Inherits properties from BaseUIProps
valuenumber--Progress value for the track color
widthnumber--Width of the progress bar
heightnumber--height of the progress bar
colorColorValue--Background color of the unfilled color
trackColorColorValue--Main trackColor of the progress bar
indeterminateboolean--Set it to true to have the infinite animation
styleStyleProp<ViewStyle>--Style of the container view
statusBlossomStatusprimary--
sizeBlossomSizemedium--