This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
Expo 常量
一个提供系统信息的 API,这些信息在应用安装的整个生命周期内保持不变。
Android
iOS
tvOS
Web
Included in Expo Go
expo-constants 提供在应用安装生命周期内保持不变的系统信息。
安装
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project.
API
import Constants from 'expo-constants';
Types
Type: ClientScopingConfig
Type: EASConfig
Type: ExpoGoConfig
Type: ExpoGoPackagerOpts
Type: ExpoUpdatesManifest
Type: ManifestAsset
Type: ManifestExtra
Enums
Deprecated: Use
Constants.executionEnvironmentinstead.
AppOwnership.Expo = "expo"The experience is running inside the Expo Go app.
Current supported values are handset, tablet, desktop and tv. CarPlay will show up
as unsupported.