expo-constants
Version: 55.0.5 Provides system information that remains constant throughout the lifetime of your app. Access app configuration, device info, manifest data, and environment constants.Installation
Usage
API Reference
Constants
ExpoConfig | null
The Expo configuration object from
app.json or app.config.jsExpoGoConfig | null
Configuration specific to Expo Go app
Manifest | null
The classic manifest object (legacy)
ExpoUpdatesManifest | null
The modern manifest format used by
expo-updates'expo' | 'standalone' | 'guest' | null
Indicates the type of app ownership:
expo: Running in Expo Gostandalone: Production buildguest: Guest modenull: Bare workflow
Device Information
string | null
The human-readable device name (e.g., “John’s iPhone”)
boolean
true if running on a physical device, false if simulator/emulatorobject
Platform-specific information:iOS:Android:
string
The OS version (e.g., “15.0” for iOS, “12” for Android API 31)
App Information
string | null
The native app version from
Info.plist (iOS) or build.gradle (Android)Example: "1.0.0"string | null
The native build numberExample:
"42" (iOS) or "42" (Android)string
A unique ID for this app session. Changes on each app launch.
number
Height of the device status bar in pixels
string
A unique ID for this app installation
Development
boolean
true if the app is running in debug modeExecutionEnvironment
The execution environment:
ExecutionEnvironment.Bare: Bare workflowExecutionEnvironment.Standalone: Production buildExecutionEnvironment.StoreClient: Expo Go
System Directories
string[]
iOS only: List of system font names available
Examples
Display App Version
Check Environment
Access Extra Config
app.json:Environment-Specific Config
app.config.js:Device Detection
Debug Information Display
TypeScript
Platform Support
On web, some device-specific constants may not be available or return default values.