This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
LoadingIndicator
用于显示加载状态的 Jetpack Compose 加载指示器组件
Expo UI 加载指示器与官方 Jetpack Compose Loading Indicator API 相匹配。


安装
If you are installing this in an existing React Native app, make sure to install expo in your project.
用法
Loading indicator
来自 Material 3 Expressive 的变形形状加载动画。
包含式加载指示器
彩色背景中的加载指示器。
不确定进度
省略 progress 属性,即可持续播放动画,而不表示特定的完成程度。
确定进度
将来自 useNativeState 的可观察状态作为 progress 传入。在 0 和 1 之间更新 progress.value。
API
import { LoadingIndicator, ContainedLoadingIndicator, } from '@expo/ui/jetpack-compose';
Components
Type: React.Element<ComponentType<ContainedLoadingIndicatorProps>>
A loading indicator that displays loading using morphing shapes inside a container.
Matches the Jetpack Compose ContainedLoadingIndicator.
Type: React.Element<ComponentType<LoadingIndicatorCommonConfig>>
A loading indicator that displays loading using morphing shapes.
Matches the Jetpack Compose LoadingIndicator.
Types
Observable state shared between JavaScript and native views (Jetpack Compose on Android and SwiftUI on iOS).
Type: SharedObject extended by: