Reference version

This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 54).

CircularProgress

GitHub

Changelog

npm

A Jetpack Compose CircularProgress component for displaying circular progress indicators.

Android

A circular progress indicator component for displaying progress in a circular format.

Installation

Terminal
npx expo install @expo/ui

If you are installing this in an existing React Native app, make sure to install expo in your project.

Usage

import { CircularProgress } from '@expo/ui/jetpack-compose'; <CircularProgress progress={0.5} style={{ width: 300 }} color="blue" elementColors={{ trackColor: '#cccccc' }} />

See Official Jetpack Compose documentation for more information.

API

Components

CircularProgress

Android

Type: React.Element<CircularProgressProps>

Renders a CircularProgress component.

CircularProgressProps

color

Android
Optional • Type: ColorValue

Progress color.

elementColors

Android
Optional • Type: ProgressElementColors

Colors for switch's core elements.

modifiers

Android
Optional • Type: ExpoModifier[]

Modifiers for the component

progress

Android
Optional • Literal type: union

The current progress value of the slider. This is a number between 0 and 1.

Acceptable values are: number | null

style

Android
Optional • Type: StyleProp<ViewStyle>

Custom styles for the progress component.

LinearProgress

Android

Type: React.Element<LinearProgressProps>

Renders a LinearProgress component.

LinearProgressProps

color

Android
Optional • Type: ColorValue

Progress color.

elementColors

Android
Optional • Type: ProgressElementColors

Colors for switch's core elements.

modifiers

Android
Optional • Type: ExpoModifier[]

Modifiers for the component

progress

Android
Optional • Literal type: union

The current progress value of the slider. This is a number between 0 and 1.

Acceptable values are: number | null

style

Android
Optional • Type: StyleProp<ViewStyle>

Custom styles for the progress component.

Types

ProgressElementColors

Android
PropertyTypeDescription
trackColor(optional)ColorValue
Only for:
Android

Track color.