This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 55).
Expo 清单
一个为 Expo 清单提供类型的库。
For the complete documentation index, see llms.txt. Use this Use this file to discover all available pages.
安装
- npx expo install expo-manifestsIf 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
Deprecated: Renamed to
EmbeddedManifest, will be removed in a few versions.
Type: EmbeddedManifest
| Property | Type | Description |
|---|---|---|
| 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. |
| Property | Type | Description |
|---|---|---|
| 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. |
An embedded manifest.
Generated during build in createManifest.js build step script.
| Property | Type | Description |
|---|---|---|
| assets | any[] | - |
| commitTime | number | - |
| id | string | - |
Type: ExpoConfig extended by:
| Property | Type | Description |
|---|---|---|
| hostUri(optional) | string | Only present during development using |
| Property | Type | Description |
|---|---|---|
| debuggerHost(optional) | string | - |
| developer(optional) | Record<string, any> & {
tool: string
} | - |
| mainModuleName(optional) | string | - |
| packagerOpts(optional) | ExpoGoPackagerOpts | - |
Type: Record<string, any> extended by:
| Property | Type | Description |
|---|---|---|
| dev(optional) | boolean | - |
| hostType(optional) | string | - |
| lanType(optional) | string | - |
| minify(optional) | boolean | - |
| strict(optional) | boolean | - |
| urlRandomness(optional) | string | - |
| urlType(optional) | string | - |
A expo-updates manifest.
| Property | Type | Description |
|---|---|---|
| assets | ManifestAsset[] | - |
| createdAt | string | - |
| extra(optional) | ManifestExtra | - |
| id | string | - |
| launchAsset | ManifestAsset | - |
| metadata | object | - |
| runtimeVersion | string | - |
Type: ClientScopingConfig extended by:
| Property | Type | Description |
|---|---|---|
| eas(optional) | EASConfig | - |
| expoClient(optional) | ExpoClientConfig | - |
| expoGo(optional) | ExpoGoConfig | - |
Deprecated: renamed to
ExpoUpdatesManifest, will be removed in a few versions.
Type: ExpoUpdatesManifest