jpush-expo-config-plugin
一个极光推送的 Expo 自动配置插件, 免去配置原生项目的繁琐步骤
此软件包不能在 “Expo Go” 应用程序中使用
1. 安装
1 | npm install jpush-expo-config-plugin --save |
注意: 如果项目里没有 jpush-react-native、jcore-react-native, 需要安装
1
2
3 npm install jpush-react-native jcore-react-native --save
或者
yarn add jpush-react-native jcore-react-native
2. 配置
安装此 npm 包后, 请将 配置插件 添加到 app.json 或 app.config.js 的 插件数组 :
app.json
1 | { |
接下来, 按照 “添加自定义 Native 代码” 指南中的描述重新构建应用程序
1 | expo prebuild |