@ config-plugins/ react-native-siri-shortcut (英语)
自动配置的 Expo 配置插件 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” 应用程序, 因为 它需要自定义本地代码。 。 。 .
首先用纱线、 npm 或 npx expo install。 。 。 .
npx expo install react-native-siri-shortcut @config-plugins/react-native-siri-shortcut
安装此 npm 软件包后, 添加 配置插件 页:1 plugins 您的数组 app.json 或者说 app.config.js数字 :
{
"plugins": ["@config-plugins/react-native-siri-shortcut"]
}
接下来,重建您的应用程序,如 "添加风俗本土代码" 向导.
API 密码
在与 Siri 快捷键合作时,您需要在 Xcode 项目上定义它们的标识符 。 要使用此插件实现同样的结果, 只需用快捷键的标识符通过一系列字符串, 并在构建周期中自动添加 :
示例
{
"plugins": [
[
"@config-plugins/react-native-siri-shortcut",
["com.example.InitiateWorkout", "com.example.FinishWorkout"]
]
]
}