# @config-plugins/react-native-siri-shortcut 中文文档

规范地址：https://npmcn.com/package/%40config-plugins/react-native-siri-shortcut/

版本：13\.0\.2
npm 元数据更新时间：2026-09-23T11:26:04.241Z
中文译文更新时间：2026-11-10T15:45:46.673Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40config-plugins/react-native-siri-shortcut
原文对照：https://npmcn.com/package/%40config-plugins/react-native-siri-shortcut/?lang=original
项目主页：https://github.com/expo/config-plugins#readme
源码仓库：https://github.com/expo/config-plugins

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：28.4 kB，12 个文件
- 模块格式：CommonJS
- TypeScript 类型：包内自带
- 运行依赖：1 个
- peer 依赖：expo \>=56
- 首次发布：2022-06-14T14:06:47.276Z
- 最新版本发布：2026-08-15T09:57:38.185Z
- 近 30 天下载量：4813（2026-10-11 至 2026-11-09，npm 官方下载统计）
- 已发布版本数：15（近 12 个月 4 个）

## 中文简介

反应- 内生- siri- 短包配置插件

## 安装

```sh
npm install @config-plugins/react-native-siri-shortcut
```

也可以使用：`pnpm add @config-plugins/react-native-siri-shortcut`、`yarn add @config-plugins/react-native-siri-shortcut`、`bun add @config-plugins/react-native-siri-shortcut`

## README

# @ config-plugins/ react-native-siri-shortcut (英语)

自动配置的 Expo 配置插件 [`react-native-siri-shortcut`](https://www.npmjs.com/package/react-native-siri-shortcut) 当本地代码生成时( w)`npx expo prebuild`) (中文(简体) ).

## 版本

确保您使用共同工作的版本 !

| `expo` | `react-native-siri-shortcut` | `@config-plugins/react-native-siri-shortcut` |
| --- | --- | --- |
| 56.0.0 (单位:千美元) | 3.2.4 国家 | 13.0.0 (单位:千美元) |
| 55.0.0 (简体中文) | 3.2.4 国家 | 12.0.0 (单位:千美元) |
| 54.0.0 (单位:千美元) | 3.2.4 国家 | 11.0.0 国家 |
| 53.0.0 (韩语) | 3.2.4 国家 | 10.0.0 (中文(简体) ) |
| 52.0.0 (简体中文) | 3.2.4 国家 | 8.0.0 (单位:千美元) |
| 51.0.0 (单位:千美元) | 3.2.4 国家 | 7.0.0 (单位:千美元) |
| 50.0.0 (中文(简体) ) | 3.2.4 国家 | 6.0.0 (单位:千美元) |
| 49.0.0 (单位:千美元) | 3.2.3 (中文(简体) ) | 5.0.0 (单位:千美元) |
| 48.0.0 (简体中文) | 3.2.2 国家 | 4.0.0 (单位:千美元) |

## 博览会安装

> 此软件包不能用于“ Expo Go” 应用程序, 因为 [它需要自定义本地代码](https://docs.expo.io/workflow/customizing/)。 。 。 .

首先用纱线、 npm 或 [`npx expo install`](https://docs.expo.io/workflow/expo-cli/#expo-install)。 。 。 .

```sh
npx expo install react-native-siri-shortcut @config-plugins/react-native-siri-shortcut
```

安装此 npm 软件包后, 添加 [配置插件](https://docs.expo.io/guides/config-plugins/) 页:1 [`plugins`](https://docs.expo.io/versions/latest/config/app/#plugins) 您的数组 `app.json` 或者说 `app.config.js`数字 :

```json
{
  "plugins": ["@config-plugins/react-native-siri-shortcut"]
}
```

接下来,重建您的应用程序,如 ["添加风俗本土代码"](https://docs.expo.io/workflow/customizing/) 向导.

## API 密码

在与 Siri 快捷键合作时,您需要在 Xcode 项目上定义它们的标识符 。 要使用此插件实现同样的结果, 只需用快捷键的标识符通过一系列字符串, 并在构建周期中自动添加 :

#### 示例

```json
{
  "plugins": [
    [
      "@config-plugins/react-native-siri-shortcut",
      ["com.example.InitiateWorkout", "com.example.FinishWorkout"]
    ]
  ]
}
```

## 常见问题

### @config-plugins/react-native-siri-shortcut 是什么？

反应- 内生- siri- 短包配置插件

### 如何安装 @config-plugins/react-native-siri-shortcut？

在项目目录运行 npm install @config-plugins/react-native-siri-shortcut，或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖：expo（\>=56）。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖，Yarn 需要手动安装。

### @config-plugins/react-native-siri-shortcut 支持 TypeScript 吗？

支持。包内自带 TypeScript 类型声明（package\.json 声明了 types 入口），安装后即可获得类型提示，无需再安装 @types 包。

### @config-plugins/react-native-siri-shortcut 支持 ESM 还是 CommonJS？

以 CommonJS 形式发布，可以直接 require\(\)；在 ES Module 项目中也可以用 import 引入（Node\.js 会把 module\.exports 作为默认导出）。

### @config-plugins/react-native-siri-shortcut 可以商用吗？

@config-plugins/react-native-siri-shortcut 使用 MIT 许可。宽松许可：允许商业使用、修改和再分发，通常只需在分发时保留原版权与许可声明。以上为概括，不构成法律意见，请以许可原文为准。

### @config-plugins/react-native-siri-shortcut 的下载量有多少？

根据 npm 官方下载统计，@config-plugins/react-native-siri-shortcut 在 2026/10/11 – 2026/11/09 这 30 天内被下载 4,813 次，日均约 160 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @config-plugins/react-native-siri-shortcut 还在维护吗？

最新版本 13\.0\.2 发布于 2026/08/15（2 个月前）；至今共发布 15 个版本，其中过去 12 个月发布了 4 个；首次发布于 2022/06/14。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

