This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 54).
LinearProgress
A SwiftUI LinearProgress component for displaying linear progress indicators.
iOS
tvOS
A linear progress indicator component for displaying progress in a horizontal bar format.
Installation
Terminal
- npx expo install @expo/uiIf you are installing this in an existing React Native app, make sure to install expo in your project.
Usage
import { LinearProgress, Host } from '@expo/ui/swift-ui'; <Host style={{ width: 300 }}> <LinearProgress progress={0.5} color="red" /> </Host>
See official SwiftUI documentation for more information.
API
Component
Type: React.Element<ProgressProps>
Renders a Progress component.
Optional • Type:
boolean • Default: falseWhether the progress counts down instead of up.
Optional • Literal type:
unionThe current progress value of the slider. This is a number between 0 and 1.
Acceptable values are: number | null
Optional • Type:
ClosedRangeDateThe lower and upper bounds for automatic timer progress.
Optional • Literal type:
string • Default: 'circular'The style of the progress indicator.
Acceptable values are: 'linear' | 'circular'