Deprecated. Followed by expo-modules/mods/expo-mods-jpush.
An expo config plugin for JPush
一个极光推送的 Expo 自动配置插件,免去配置原生项目的繁琐步骤
此软件包不能在 "Expo Go" 应用程序中使用
npm install jpush-expo-config-plugin --save
或者
yarn add jpush-expo-config-plugin
注意:如果项目里没有 jpush-react-native、jcore-react-native, 需要安装
npm install jpush-react-native jcore-react-native --save 或者 yarn add jpush-react-native jcore-react-native
安装此 npm 包后,请将 配置插件 添加到 app.json 或 app.config.js 的 插件数组 :
app.json
{
"expo": {
"plugins": [
[
"jpush-expo-config-plugin",
{
"appKey": "你的极光推送 AppKey",
"channel": "你的极光推送 Channel"
}
]
]
}
}
接下来,按照 "添加自定义 Native 代码" 指南中的描述重新构建应用程序
expo prebuild