Reference version

This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.

Expo 清单

一个为 Expo 清单提供类型的库。

Android
iOS
tvOS
Included in Expo Go
Recommended version:
~57.0.0

安装

Terminal
npx expo install expo-manifests

If you are installing this in an existing React Native app, make sure to install expo in your project.

API

import * as Manifests from 'expo-manifests';

Types

BareManifest

Type: EmbeddedManifest

ClientScopingConfig

PropertyTypeDescription
scopeKey(optional)string

An opaque unique string for scoping client-side data to this project. This value will not change when a project is transferred between accounts or renamed.

EASConfig

PropertyTypeDescription
projectId(optional)string

The ID for this project if it's using EAS. UUID. This value will not change when a project is transferred between accounts or renamed.

EmbeddedManifest

An embedded manifest.

Generated during build in createManifest.js build step script.

PropertyTypeDescription
assetsany[]
-
commitTimenumber
-
idstring
-

ExpoClientConfig

Type: ExpoConfig extended by:

PropertyTypeDescription
hostUri(optional)string

Only present during development using @expo/cli.

ExpoGoConfig

PropertyTypeDescription
debuggerHost(optional)string
-
developer(optional)Record<string, any> & { tool: string }
-
mainModuleName(optional)string
-
packagerOpts(optional)ExpoGoPackagerOpts
-

ExpoGoPackagerOpts

Type: Record<string, any> extended by:

PropertyTypeDescription
dev(optional)boolean
-
hostType(optional)string
-
lanType(optional)string
-
minify(optional)boolean
-
strict(optional)boolean
-
urlRandomness(optional)string
-
urlType(optional)string
-

ExpoUpdatesManifest

A expo-updates manifest.

PropertyTypeDescription
assetsManifestAsset[]
-
createdAtstring
-
extra(optional)ManifestExtra
-
idstring
-
launchAssetManifestAsset
-
metadataobject
-
runtimeVersionstring
-

ManifestAsset

PropertyTypeDescription
urlstring
-

ManifestExtra

Type: ClientScopingConfig extended by:

PropertyTypeDescription
eas(optional)EASConfig
-
expoClient(optional)ExpoClientConfig
-
expoGo(optional)ExpoGoConfig
-

NewManifest

Type: ExpoUpdatesManifest