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,这些信息在应用安装的整个生命周期内保持不变。
expo-constants 提供在应用安装后的整个生命周期内保持不变的系统信息。
安装
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.
Identifies where the app's JavaScript bundle is currently running.
ExecutionEnvironment.Bare = "bare"A project that includes native project directories that you maintain directly in your existing (bare) React Native app.
ExecutionEnvironment.Standalone = "standalone"Production/release build created with or without EAS Build.
Current supported values are handset, tablet, desktop and tv. CarPlay will show up
as unsupported.