This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 58).
Expo Constants
An API that provides system information that remains constant throughout the lifetime of your app's installation.
expo-constants provides system information that remains constant throughout the lifetime of your app's installation.
Your app can read these values, but it cannot change them. The device and the operating system provide some of them, such as Constants.deviceName and Constants.systemFonts. Constants.expoConfig contains most of your app config. To pass your own values to your app, add them to the extra field of your app config. Then read them from Constants.expoConfig.extra.
Platform-specific values are in Constants.platform. For example, on iOS, Constants.platform.ios.buildNumber returns the build number of your app (it is null in Expo Go). For other device and app details, use expo-device and expo-application.
Installation
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 React Native project.
ExecutionEnvironment.Standalone = "standalone"Production/release build created with or without Expo Build.
Current supported values are handset, tablet, desktop and tv. CarPlay will show up
as unsupported.