app.json / app.config.js
Expo 应用配置中可用属性的参考。
以下是 app.json 或 app.config.json 中 "expo" 键下可用的属性列表。这些属性可以传递给 app.config.js 或 app.config.ts 的顶层对象。
¥The following is a list of properties that are available for you under the "expo" key in app.json or app.config.json. These properties can be passed to the top level object of app.config.js or app.config.ts.
有关应用配置、各种应用配置文件之间的差异以及如何动态使用它们的信息。
属性
¥Properties
stringThe name of your app as it appears both within Expo Go and on your home screen as a standalone app.
stringThe name of the Expo account that owns the project. This is useful for teams collaborating on a project. If not provided, the owner defaults to the username of the current user.
stringThe auto generated Expo account name and slug used for display purposes. It is not meant to be set directly. Formatted like @username/slug. When unauthenticated, the username is @anonymous. For published projects, this value may change when a project is transferred between accounts or renamed.
stringThe auto generated Expo account name and slug used for services like Notifications and AuthSession proxy. It is not meant to be set directly. Formatted like @username/slug. When unauthenticated, the username is @anonymous. For published projects, this value will not change when a project is transferred between accounts or renamed.
stringThe Expo sdkVersion to run the project on. This should line up with the version specified in your package.json.
stringmatching the following pattern:^[a-zA-Z\d][a-zA-Z\d._+()-]{0,254}$stringmatching the following pattern:^exposdk:((\d+\.\d+\.\d+)|(UNVERSIONED))$- An
objectwith the following properties:
Property indicating compatibility between a build's native code and an OTA update.
stringYour app version. In addition to this field, you'll also use ios.buildNumber and android.versionCode — read more about how to version your app here. On iOS this corresponds to CFBundleShortVersionString, and on Android, this corresponds to versionName. The required format can be found here.
arrayPlatforms that your project explicitly supports. If not specified, it defaults to ["ios", "android"].
Example
[
"ios",
"android",
"web"
]stringIf you would like to share the source code of your app on Github, enter the URL for the repository here and it will be linked to from your Expo project page.
Example
"https://github.com/expo/expo"enumLocks your app to a specific orientation with portrait or landscape. Defaults to no lock. Valid values: default, portrait, landscape
enumConfiguration to force the app to always use the light or dark user-interface appearance, such as "dark mode", or make it automatically adapt to the system preferences. If not provided, defaults to light. Requires expo-system-ui be installed in your project to work on Android.
stringThe background color for your app, behind any of your React views. This is also known as the root view background color. Requires expo-system-ui be installed in your project to work on iOS.
6 character long hex color string, for example, '#000000'. Default is white: '#ffffff'
stringOn Android, this will determine the color of your app in the multitasker. Currently this is not used on iOS, but it may be used for other purposes in the future.
6 character long hex color string, for example, '#000000'
stringLocal path or remote URL to an image to use for your app's icon. We recommend that you use a 1024x1024 png file. This icon will appear on the home screen and within the Expo Go app.
Bare Workflow
To change your app's icon, edit or replace the files in ios/<PROJECT-NAME>/Assets.xcassets/AppIcon.appiconset (we recommend using Xcode), and android/app/src/main/res/mipmap-<RESOLUTION>. Be sure to follow the guidelines for each platform (iOS, Android 7.1 and below, and Android 8+) and to provide your new icon in each existing size.
objectConfiguration for remote (push) notifications.
string • Path: notification.icon(Android only) Local path or remote URL to an image to use as the icon for push notifications. 96x96 png grayscale with transparency. We recommend following Google's design guidelines. If not provided, defaults to your app icon.
string • Path: notification.color(Android only) Tint color for the push notification image when it appears in the notification tray. Defaults to #ffffff
6 character long hex color string, for example, '#000000'
boolean • Path: notification.iosDisplayInForegroundWhether or not to display notifications when the app is in the foreground on iOS. _displayInForeground option in the individual push notification message overrides this option. Learn more. Defaults to false.
enum • Path: notification.androidModeShow each push notification individually (default) or collapse into one (collapse).
objectConfiguration for the status bar on Android. For more details please navigate to Configuring StatusBar.
enum • Path: androidStatusBar.barStyleConfigures the status bar icons to have a light or dark color. Valid values: light-content, dark-content. Defaults to dark-content
string • Path: androidStatusBar.backgroundColorSpecifies the background color of the status bar. Defaults to #00000000 (transparent) for dark-content bar style and #00000088 (semi-transparent black) for light-content bar style
6 character long hex color string '#RRGGBB', for example, '#000000' for black. Or 8 character long hex color string '#RRGGBBAA', for example, '#00000088' for semi-transparent black.
hidden
boolean • Path: androidStatusBar.hiddenInstructs the system whether the status bar should be visible or not. Defaults to false
boolean • Path: androidStatusBar.translucentWhen false, the system status bar pushes the content of your app down (similar to position: relative). When true, the status bar floats above the content in your app (similar to position: absolute). Defaults to true to match the iOS status bar behavior (which can only float above content). Explicitly setting this property to true will add android:windowTranslucentStatus to styles.xml and may cause unexpected keyboard behavior on Android when using the softwareKeyboardLayoutMode set to resize. In this case you will have to use KeyboardAvoidingView to manage the keyboard layout.
objectConfiguration for the bottom navigation bar on Android. Can be used to configure the expo-navigation-bar module in EAS Build.
enum • Path: androidNavigationBar.visibleDetermines how and when the navigation bar is shown. Learn more. Requires expo-navigation-bar be installed in your project. Valid values: leanback, immersive, sticky-immersive
leanback results in the navigation bar being hidden until the first touch gesture is registered.
immersive results in the navigation bar being hidden until the user swipes up from the edge where the navigation bar is hidden.
sticky-immersive is identical to 'immersive' except that the navigation bar will be semi-transparent and will be hidden again after a short period of time.
enum • Path: androidNavigationBar.barStyleConfigure the navigation bar icons to have a light or dark color. Supported on Android Oreo and newer. Valid values: 'light-content', 'dark-content'
objectSettings that apply specifically to running this app in a development client
stringmatching the following pattern:^[a-z][a-z0-9+.-]*$
{
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9+.-]*$"
}
}URL scheme(s) to link into your app. For example, if we set this to 'demo', then demo:// URLs would open your app when tapped. This is a build-time configuration, it has no effect in Expo Go.
String beginning with a lowercase letter followed by any combination of lowercase letters, digits, "+", "." or "-"
objectAny extra fields you want to pass to your experience. Values are accessible via Constants.expoConfig.extra (Learn more)
objectConfiguration for the expo-updates library
boolean • Path: updates.enabledWhether the updates system will run. Defaults to true. If set to false, builds will only use code and assets bundled at time of build.
enum • Path: updates.checkAutomaticallyBy default, expo-updates will check for updates every time the app is loaded. Set this to ON_ERROR_RECOVERY to disable automatic checking unless recovering from an error. Set this to NEVER to disable automatic checking. Valid values: ON_LOAD (default value), ON_ERROR_RECOVERY, WIFI_ONLY, NEVER
boolean • Path: updates.useEmbeddedUpdateWhether to load the embedded update. Defaults to true. If set to false, an update will be fetched at launch. When set to false, ensure that checkAutomatically is set to ON_LOAD and fallbackToCacheTimeout is large enough for the initial remote update to download. This should not be used in production.
number • Path: updates.fallbackToCacheTimeoutHow long (in ms) to wait for the app to check for and fetch a new update upon launch before falling back to the most recent update already present on the device. Defaults to 0. Must be between 0 and 300000 (5 minutes). If the startup update check takes longer than this value, any update downloaded during the check will be applied upon the next app launch.
string • Path: updates.codeSigningCertificateLocal path of a PEM-formatted X.509 certificate used for verifying codesigned updates. When provided, all updates downloaded by expo-updates must be signed.
object • Path: updates.codeSigningMetadataMetadata for codeSigningCertificate
enum • Path: updates.codeSigningMetadata.algAlgorithm used to generate manifest code signing signature. Valid values: rsa-v1_5-sha256
object • Path: updates.requestHeadersExtra HTTP headers to include in HTTP requests made by expo-updates when fetching manifests or assets. These may override preset headers.
array • Path: updates.assetPatternsToBeBundledArray of glob patterns specifying which files should be included in updates. Glob patterns are relative to the project root. A value of ['**'] will match all asset files within the project root. When not supplied all asset files will be included. Example: Given a value of ['app/images/**/*.png', 'app/fonts/**/*.woff'] all .png files in all subdirectories of app/images and all .woff files in all subdirectories of app/fonts will be included in updates.
boolean • Path: updates.disableAntiBrickingMeasuresWhether to disable the built-in expo-updates anti-bricking measures. Defaults to false. If set to true, this will allow overriding certain configuration options from the JS API, which is liable to leave an app in a bricked state if not done carefully. This should not be used in production.
boolean • Path: updates.useNativeDebugEnable debugging of native code with updates enabled. Defaults to false. If set to true, the EX_UPDATES_NATIVE_DEBUG environment variable will be set in Podfile.properties.json and gradle.properties. This causes Xcode and Android Studio debug builds to be built with expo-updates enabled, and JS debugging (with dev client or packager) disabled. This should not be used in production.
objectProvide overrides by locale for System Dialog prompts like Permissions Boxes
arrayConfig plugins for adding extra functionality to your project. Learn more.
Bare Workflow
Plugins that add modifications can only be used with prebuilding and managed EAS Build
objectConfiguration for loading and splash screen for standalone apps.
Bare Workflow
To change your app's icon, edit or replace the files in ios/<PROJECT-NAME>/Assets.xcassets/AppIcon.appiconset (we recommend using Xcode), and android/app/src/main/res/mipmap-<RESOLUTION> (Android Studio can generate the appropriate image files for you). Be sure to follow the guidelines for each platform (iOS, Android 7.1 and below, and Android 8+) and to provide your new icon in each required size.
string • Path: splash.backgroundColorColor to fill the loading screen background
6 character long hex color string, for example, '#000000'
enum • Path: splash.resizeModeDetermines how the image will be displayed in the splash loading screen. Must be one of cover or contain, defaults to contain.
enum@deprecated This field will be removed in a future release. When it is removed, you can continue using JavaScriptCore instead of Hermes by following the instructions in @react-native-community/javascriptcore. Specifies the JavaScript engine for Android apps. Defaults to hermes. Valid values: hermes, jsc.
booleanA Boolean value that indicates whether the app should use the new architecture. Defaults to true.
objectConfiguration that is specific to the iOS platform.
string • Path: ios.appleTeamIdThe Apple development team ID to use for all native targets. You can find your team ID in the Apple Developer Portal.
string • Path: ios.publishManifestPathThe manifest for the iOS version of your app will be written to this path during publish.
string • Path: ios.publishBundlePathThe bundle for the iOS version of your app will be written to this path during publish.
string • Path: ios.bundleIdentifierThe bundle identifier for your iOS standalone app. You make it up, but it needs to be unique on the App Store. See this StackOverflow question.
iOS bundle identifier notation unique name for your app. For example, host.exp.expo, where exp.host is our domain and expo is our app name.
string • Path: ios.buildNumberBuild number for your iOS standalone app. Corresponds to CFBundleVersion and must match Apple's specified format. (Note: Transporter will pull the value for Version Number from expo.version and NOT from expo.ios.buildNumber.)
string • Path: ios.backgroundColorThe background color for your iOS app, behind any of your React views. Overrides the top-level backgroundColor key if it is present. Requires expo-system-ui be installed in your project to work on iOS.
6 character long hex color string, for example, '#000000'
stringmatching the following pattern:^[a-z][a-z0-9+.-]*$
{
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9+.-]*$"
}
}URL scheme(s) to link into your iOS app. Schemes added to this field will be merged with the schemes in the scheme key at the top level of the config.
String beginning with a lowercase letter followed by any combination of lowercase letters, digits, "+", "." or "-"
string- An
objectwith the following properties:Type:string• Path:ios.icon.lightThe light icon. It will appear when neither dark nor tinted icons are used, or if they are not provided.
Type:string• Path:ios.icon.darkThe dark icon. It will appear for the app when the user's system appearance is dark. See Apple's Human Interface Guidelines for more information.
Type:string• Path:ios.icon.tintedThe tinted icon. It will appear for the app when the user's system appearance is tinted. See Apple's Human Interface Guidelines for more information.
Local path or remote URL to an image to use for your app's icon on iOS. Alternatively, an object specifying different icons for various system appearances (e.g., dark, tinted) can be provided. If specified, this overrides the top-level icon key. Use a 1024x1024 icon which follows Apple's interface guidelines for icons, including color profile and transparency.
Expo will generate the other required sizes. This icon will appear on the home screen and within the Expo Go app.
string • Path: ios.appStoreUrlURL to your app on the Apple App Store, if you have deployed it there. This is used to link to your store page from your Expo project page if your app is public.
Example
"https://apps.apple.com/us/app/expo-client/id982107779"undefined • Path: ios.bitcodeEnable iOS Bitcode optimizations in the native build. Accepts the name of an iOS build configuration to enable for a single configuration and disable for all others, e.g. Debug, Release. Not available in Expo Go. Defaults to undefined which uses the template's predefined settings.
object • Path: ios.configNote: This property key is not included in the production manifest and will evaluate to undefined. It is used internally only in the build process, because it contains API keys that some may want to keep private.
object • Path: ios.config.branchBranch key to hook up Branch linking services.
boolean • Path: ios.config.usesNonExemptEncryptionSets ITSAppUsesNonExemptEncryption in the standalone ipa's Info.plist to the given boolean value.
string • Path: ios.config.googleMapsApiKeyGoogle Maps iOS SDK key for your standalone app.
string • Path: ios.config.googleMobileAdsAppIdGoogle Mobile Ads App ID Google AdMob App ID.
boolean • Path: ios.config.googleMobileAdsAutoInitA boolean indicating whether to initialize Google App Measurement and begin sending user-level event data to Google immediately when the app starts. The default in Expo (Go and in standalone apps) is false. Sets the opposite of the given value to the following key in Info.plist.
string • Path: ios.googleServicesFileFirebase Configuration File Location of the GoogleService-Info.plist file for configuring Firebase.
boolean • Path: ios.supportsTabletWhether your standalone iOS app supports tablet screen sizes. Defaults to false.
boolean • Path: ios.isTabletOnlyIf true, indicates that your standalone iOS app does not support handsets, and only supports tablets.
boolean • Path: ios.requireFullScreenIf true, indicates that your standalone iOS app does not support Slide Over and Split View on iPad. Defaults to false
enum • Path: ios.userInterfaceStyleConfiguration to force the app to always use the light or dark user-interface appearance, such as "dark mode", or make it automatically adapt to the system preferences. If not provided, defaults to light.
object • Path: ios.infoPlistDictionary of arbitrary configuration to add to your standalone app's native Info.plist. Applied prior to all other Expo-specific configuration. No other validation is performed, so use this at your own risk of rejection from the App Store.
object • Path: ios.entitlementsDictionary of arbitrary configuration to add to your standalone app's native *.entitlements (plist). Applied prior to all other Expo-specific configuration. No other validation is performed, so use this at your own risk of rejection from the App Store.
object • Path: ios.privacyManifestsDictionary of privacy manifest definitions to add to your app's native PrivacyInfo.xcprivacy file. Learn more
array • Path: ios.privacyManifests.NSPrivacyAccessedAPITypesA list of required reasons of why your app uses restricted API categories. Learn more
string • Path: ios.privacyManifests.NSPrivacyAccessedAPITypes.NSPrivacyAccessedAPITypeA string that identifies the category of required reason APIs your app uses
array • Path: ios.privacyManifests.NSPrivacyTrackingDomainsA list of domains that your app uses for tracking.
boolean • Path: ios.privacyManifests.NSPrivacyTrackingA Boolean that indicates whether your app or third-party SDK uses data for tracking.
array • Path: ios.privacyManifests.NSPrivacyCollectedDataTypesA list of collected data types that your app uses.
string • Path: ios.privacyManifests.NSPrivacyCollectedDataTypes.NSPrivacyCollectedDataTypeNSPrivacyCollectedDataTypeLinked
boolean • Path: ios.privacyManifests.NSPrivacyCollectedDataTypes.NSPrivacyCollectedDataTypeLinkedarray • Path: ios.associatedDomainsAn array that contains Associated Domains for the standalone app. Learn more.
Entries must follow the format applinks:<fully qualified domain>[:port number]. Learn more.
Bare Workflow
Build with EAS, or use Xcode to enable this capability manually. Learn more.
boolean • Path: ios.usesIcloudStorageA boolean indicating if the app uses iCloud Storage for DocumentPicker. See DocumentPicker docs for details.
boolean • Path: ios.usesAppleSignInA boolean indicating if the app uses Apple Sign-In. See AppleAuthentication docs for details.
usesBroadcastPushNotifications
boolean • Path: ios.usesBroadcastPushNotificationsA boolean indicating if the app uses Push Notifications Broadcast option for Push Notifications capability. If true, EAS CLI will use the value during capability syncing. If EAS CLI is not used, this configuration will not have any effect unless another tool is used to operate on it, so enable the capability manually on the Apple Developer Portal in that case.
boolean • Path: ios.accessesContactNotesA Boolean value that indicates whether the app may access the notes stored in contacts. You must receive permission from Apple before you can submit your app for review with this capability.
object • Path: ios.splashConfiguration for loading and splash screen for standalone iOS apps.
string • Path: ios.splash.backgroundColorColor to fill the loading screen background
6 character long hex color string, for example, '#000000'
enum • Path: ios.splash.resizeModeDetermines how the image will be displayed in the splash loading screen. Must be one of cover or contain, defaults to contain.
string • Path: ios.splash.imageLocal path or remote URL to an image to fill the background of the loading screen. Image size and aspect ratio are up to you. Must be a .png.
string • Path: ios.splash.tabletImageLocal path or remote URL to an image to fill the background of the loading screen. Image size and aspect ratio are up to you. Must be a .png.
object • Path: ios.splash.darkConfiguration for loading and splash screen for standalone iOS apps in dark mode.
string • Path: ios.splash.dark.backgroundColorColor to fill the loading screen background
6 character long hex color string, for example, '#000000'
enum • Path: ios.splash.dark.resizeModeDetermines how the image will be displayed in the splash loading screen. Must be one of cover or contain, defaults to contain.
string • Path: ios.splash.dark.imageLocal path or remote URL to an image to fill the background of the loading screen. Image size and aspect ratio are up to you. Must be a .png.
enum • Path: ios.jsEngine@deprecated This field will be removed in a future release. When it is removed, you can continue using JavaScriptCore instead of Hermes by following the instructions in @react-native-community/javascriptcore. Specifies the JavaScript engine for iOS apps. Not supported in Expo Go. Defaults to hermes. Valid values: hermes, jsc.
boolean • Path: ios.newArchEnabledA Boolean value that indicates whether the iOS app should use the new architecture.
stringmatching the following pattern:^[a-zA-Z\d][a-zA-Z\d._+()-]{0,254}$stringmatching the following pattern:^exposdk:((\d+\.\d+\.\d+)|(UNVERSIONED))$- An
objectwith the following properties:
Property indicating compatibility between an iOS build's native code and an OTA update for the iOS platform. If provided, this will override the value of the top level runtimeVersion key on iOS.
objectConfiguration that is specific to the Android platform.
string • Path: android.publishManifestPathThe manifest for the Android version of your app will be written to this path during publish.
string • Path: android.publishBundlePathThe bundle for the Android version of your app will be written to this path during publish.
string • Path: android.packageThe package name for your Android standalone app. You make it up, but it needs to be unique on the Play Store. See this StackOverflow question.
Reverse DNS notation unique name for your app. Valid Android Application ID. For example, com.example.app, where com.example is our domain and app is our app. The name may only contain lowercase and uppercase letters (a-z, A-Z), numbers (0-9) and underscores (_), separated by periods (.). Each component of the name should start with a lowercase letter.
integer • Path: android.versionCodeVersion number required by Google Play. Increment by one for each release. Must be a positive integer. Learn more
string • Path: android.backgroundColorThe background color for your Android app, behind any of your React views. Overrides the top-level backgroundColor key if it is present.
6 character long hex color string, for example, '#000000'
enum • Path: android.userInterfaceStyleConfiguration to force the app to always use the light or dark user-interface appearance, such as "dark mode", or make it automatically adapt to the system preferences. If not provided, defaults to light. Requires expo-system-ui be installed in your project to work on Android.
stringmatching the following pattern:^[a-z][a-z0-9+.-]*$
{
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9+.-]*$"
}
}URL scheme(s) to link into your Android app. Schemes added to this field will be merged with the schemes in the scheme key at the top level of the config.
String beginning with a lowercase letter followed by any combination of lowercase letters, digits, "+", "." or "-"
string • Path: android.iconLocal path or remote URL to an image to use for your app's icon on Android. If specified, this overrides the top-level icon key. We recommend that you use a 1024x1024 png file (transparency is recommended for the Google Play Store). This icon will appear on the home screen and within the Expo Go app.
object • Path: android.adaptiveIconSettings for an Adaptive Launcher Icon on Android. Learn more
string • Path: android.adaptiveIcon.foregroundImageLocal path or remote URL to an image to use for your app's icon on Android. If specified, this overrides the top-level icon and the android.icon keys. Should follow the specified guidelines. This icon will appear on the home screen.
string • Path: android.adaptiveIcon.monochromeImageLocal path or remote URL to an image representing the Android 13+ monochromatic icon. Should follow the specified guidelines. This icon will appear on the home screen when the user enables 'Themed icons' in system settings on a device running Android 13+.
string • Path: android.adaptiveIcon.backgroundImageLocal path or remote URL to a background image for your app's Adaptive Icon on Android. If specified, this overrides the backgroundColor key. Must have the same dimensions as foregroundImage, and has no effect if foregroundImage is not specified. Should follow the specified guidelines.
string • Path: android.playStoreUrlURL to your app on the Google Play Store, if you have deployed it there. This is used to link to your store page from your Expo project page if your app is public.
Example
"https://play.google.com/store/apps/details?id=host.exp.exponent"array • Path: android.permissionsA list of permissions to add to the app AndroidManifest.xml during prebuild. For example: ['android.permission.SCHEDULE_EXACT_ALARM']
Bare Workflow
To change the permissions your app requests, edit AndroidManifest.xml directly. To prevent your app from requesting specific permissions (which may automatically be added through an installed native package), add those permissions to AndroidManifest.xml along with a tools:node="remove" tag.
array • Path: android.blockedPermissionsList of permissions to block in the final AndroidManifest.xml. This is useful for removing permissions that are added by native package AndroidManifest.xml files which are merged into the final manifest. Internally this feature uses the tools:node="remove" XML attribute to remove permissions. Not available in Expo Go.
string • Path: android.googleServicesFileFirebase Configuration File Location of the google-services.json file for configuring Firebase. Including this key automatically enables FCM in your standalone app.
object • Path: android.configNote: This property key is not included in the production manifest and will evaluate to undefined. It is used internally only in the build process, because it contains API keys that some may want to keep private.
object • Path: android.config.branchBranch key to hook up Branch linking services.
object • Path: android.config.googleMapsGoogle Maps Android SDK configuration for your standalone app.
string • Path: android.config.googleMobileAdsAppIdGoogle Mobile Ads App ID Google AdMob App ID.
boolean • Path: android.config.googleMobileAdsAutoInitA boolean indicating whether to initialize Google App Measurement and begin sending user-level event data to Google immediately when the app starts. The default in Expo (Client and in standalone apps) is false. Sets the opposite of the given value to the following key in Info.plist
object • Path: android.splashConfiguration for loading and splash screen for managed and standalone Android apps.
string • Path: android.splash.backgroundColorColor to fill the loading screen background
6 character long hex color string, for example, '#000000'
enum • Path: android.splash.resizeModeDetermines how the image will be displayed in the splash loading screen. Must be one of cover, contain or native, defaults to contain.
string • Path: android.splash.imageLocal path or remote URL to an image to fill the background of the loading screen. Image size and aspect ratio are up to you. Must be a .png.
string • Path: android.splash.mdpiLocal path or remote URL to an image to fill the background of the loading screen in "native" mode. Image size and aspect ratio are up to you. Learn more
Natural sized image (baseline)
string • Path: android.splash.hdpiLocal path or remote URL to an image to fill the background of the loading screen in "native" mode. Image size and aspect ratio are up to you. Learn more
Scale 1.5x
string • Path: android.splash.xhdpiLocal path or remote URL to an image to fill the background of the loading screen in "native" mode. Image size and aspect ratio are up to you. Learn more
Scale 2x
string • Path: android.splash.xxhdpiLocal path or remote URL to an image to fill the background of the loading screen in "native" mode. Image size and aspect ratio are up to you. Learn more
Scale 3x
string • Path: android.splash.xxxhdpiLocal path or remote URL to an image to fill the background of the loading screen in "native" mode. Image size and aspect ratio are up to you. Learn more
Scale 4x
object • Path: android.splash.darkConfiguration for loading and splash screen for managed and standalone Android apps in dark mode.
string • Path: android.splash.dark.backgroundColorColor to fill the loading screen background
6 character long hex color string, for example, '#000000'
enum • Path: android.splash.dark.resizeModeDetermines how the image will be displayed in the splash loading screen. Must be one of cover, contain or native, defaults to contain.
string • Path: android.splash.dark.imageLocal path or remote URL to an image to fill the background of the loading screen. Image size and aspect ratio are up to you. Must be a .png.
string • Path: android.splash.dark.mdpiLocal path or remote URL to an image to fill the background of the loading screen in "native" mode. Image size and aspect ratio are up to you. Learn more
Natural sized image (baseline)
string • Path: android.splash.dark.hdpiLocal path or remote URL to an image to fill the background of the loading screen in "native" mode. Image size and aspect ratio are up to you. Learn more
Scale 1.5x
string • Path: android.splash.dark.xhdpiLocal path or remote URL to an image to fill the background of the loading screen in "native" mode. Image size and aspect ratio are up to you. Learn more
Scale 2x
string • Path: android.splash.dark.xxhdpiLocal path or remote URL to an image to fill the background of the loading screen in "native" mode. Image size and aspect ratio are up to you. Learn more
Scale 3x
string • Path: android.splash.dark.xxxhdpiLocal path or remote URL to an image to fill the background of the loading screen in "native" mode. Image size and aspect ratio are up to you. Learn more
Scale 4x
array • Path: android.intentFiltersConfiguration for setting an array of custom intent filters in Android manifest. Learn more
Bare Workflow
This is set in AndroidManifest.xml directly. Learn more.
Example
[
{
"autoVerify": true,
"action": "VIEW",
"data": {
"scheme": "https",
"host": "*.example.com"
},
"category": [
"BROWSABLE",
"DEFAULT"
]
}
]boolean • Path: android.intentFilters.autoVerifyYou may also use an intent filter to set your app as the default handler for links (without showing the user a dialog with options). To do so use true and then configure your server to serve a JSON file verifying that you own the domain. Learn more
boolean • Path: android.allowBackupAllows your user's app data to be automatically backed up to their Google Drive. If this is set to false, no backup or restore of the application will ever be performed (this is useful if your app deals with sensitive information). Defaults to the Android default, which is true.
enum • Path: android.softwareKeyboardLayoutModeDetermines how the software keyboard will impact the layout of your application. This maps to the android:windowSoftInputMode property. Defaults to resize. Valid values: resize, pan.
enum • Path: android.jsEngine@deprecated This field will be removed in a future release. When it is removed, you can continue using JavaScriptCore instead of Hermes by following the instructions in @react-native-community/javascriptcore. Specifies the JavaScript engine for Android apps. Defaults to hermes. Valid values: hermes, jsc.
boolean • Path: android.newArchEnabledA Boolean value that indicates whether the Android app should use the new architecture.
stringmatching the following pattern:^[a-zA-Z\d][a-zA-Z\d._+()-]{0,254}$stringmatching the following pattern:^exposdk:((\d+\.\d+\.\d+)|(UNVERSIONED))$- An
objectwith the following properties:
Property indicating compatibility between a Android build's native code and an OTA update for the Android platform. If provided, this will override the value of top level runtimeVersion key on Android.
string • Path: android.versionYour android app version. Takes precedence over the root version field. In addition to this field, you'll also use android.versionCode — read more about how to version your app here. This corresponds to versionName. The required format can be found here.
boolean • Path: android.edgeToEdgeEnabledEnable your app to run in edge-to-edge mode. Default to false.
Bare Workflow
To change the setting, update the expo.edgeToEdgeEnabled value in android/gradle.properties and update the AppTheme's parent attribute to one of the Theme.EdgeToEdge values in styles.xml
objectConfiguration that is specific to the web platform.
enum • Path: web.outputSets the export method for the web app for both expo start and expo export. static statically renders HTML files for every route in the app/ directory, which is available only in Expo Router apps. single outputs a Single Page Application (SPA), with a single index.html in the output folder, and has no statically indexable HTML. server outputs static HTML, and API Routes for hosting with a custom Node.js server. Defaults to single.
string • Path: web.nameDefines the title of the document, defaults to the outer level name
string • Path: web.shortNameA short version of the app's name, 12 characters or fewer. Used in app launcher and new tab pages. Maps to short_name in the PWA manifest.json. Defaults to the name property.
Maximum 12 characters long
string • Path: web.langSpecifies the primary language for the values in the name and short_name members. This value is a string containing a single language tag.
string • Path: web.scopeDefines the navigation scope of this website's context. This restricts what web pages can be viewed while the manifest is applied. If the user navigates outside the scope, it returns to a normal web page inside a browser tab/window. If the scope is a relative URL, the base URL will be the URL of the manifest.
string • Path: web.themeColorDefines the color of the Android tool bar, and may be reflected in the app's preview in task switchers.
6 character long hex color string, for example, '#000000'
string • Path: web.descriptionProvides a general description of what the pinned website does.
enum • Path: web.dirSpecifies the primary text direction for the name, short_name, and description members. Together with the lang member, it helps the correct display of right-to-left languages.
enum • Path: web.displayDefines the developers’ preferred display mode for the website.
string • Path: web.startUrlThe URL that loads when a user launches the application (e.g., when added to home screen), typically the index. Note: This has to be a relative URL, relative to the manifest URL.
enum • Path: web.orientationDefines the default orientation for all the website's top level browsing contexts.
string • Path: web.backgroundColorDefines the expected “background color” for the website. This value repeats what is already available in the site’s CSS, but can be used by browsers to draw the background color of a shortcut when the manifest is available before the stylesheet has loaded. This creates a smooth transition between launching the web application and loading the site's content.
6 character long hex color string, for example, '#000000'
enum • Path: web.barStyleIf content is set to default, the status bar appears normal. If set to black, the status bar has a black background. If set to black-translucent, the status bar is black and translucent. If set to default or black, the web content is displayed below the status bar. If set to black-translucent, the web content is displayed on the entire screen, partially obscured by the status bar.
boolean • Path: web.preferRelatedApplicationsHints for the user agent to indicate to the user that the specified native applications (defined in expo.ios and expo.android) are recommended over the website.
object • Path: web.dangerousExperimental features. These will break without deprecation notice.
object • Path: web.splashConfiguration for PWA splash screens.
string • Path: web.splash.backgroundColorColor to fill the loading screen background
6 character long hex color string, for example, '#000000'
enum • Path: web.splash.resizeModeDetermines how the image will be displayed in the splash loading screen. Must be one of cover or contain, defaults to contain.
object • Path: web.configFirebase web configuration. Used by the expo-firebase packages on both web and native. Learn more
object • Path: web.config.firebaseobjectEnable experimental features that may be unstable, unsupported, or removed without deprecation notices.
string • Path: experiments.baseUrlExport a website relative to a subpath of a domain. The path will be prepended as-is to links to all bundled resources. Prefix the path with a / (recommended) to load all resources relative to the server root. If the path does not start with a / then resources will be loaded relative to the code that requests them, this could lead to unexpected behavior. Example '/subpath'. Defaults to '' (empty string).
boolean • Path: experiments.supportsTVOnlyIf true, indicates that this project does not support tablets or handsets, and only supports Apple TV and Android TV
boolean • Path: experiments.tsconfigPathsEnable tsconfig/jsconfig compilerOptions.paths and compilerOptions.baseUrl support for import aliases in Metro.
boolean • Path: experiments.typedRoutesEnable support for statically typed links in Expo Router. This feature requires TypeScript be set up in your Expo Router v2 project.
boolean • Path: experiments.turboModulesEnables Turbo Modules, which are a type of native modules that use a different way of communicating between JS and platform code. When installing a Turbo Module you will need to enable this experimental option (the library still needs to be a part of Expo SDK already, like react-native-reanimated v2). Turbo Modules do not support remote debugging and enabling this option will disable remote debugging.
boolean • Path: experiments.reactCanaryExperimentally use a vendored canary build of React for testing upcoming features.
boolean • Path: experiments.reactServerComponentRoutesExperimentally enable React Server Components by default in Expo Router and concurrent routing for transitions.
boolean • Path: experiments.reactServerFunctionsExperimentally enable React Server Functions support in Expo CLI and Expo Router.