jpush-expo-config-plugin

0.0.6 • Public • Published

jpush-expo-config-plugin

An expo config plugin for JPush

一个极光推送的 Expo 自动配置插件, 免去配置原生项目的繁琐步骤

此软件包不能在 "Expo Go" 应用程序中使用

1. 安装

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

2. 配置

安装此 npm 包后, 请将 配置插件 添加到 app.json 或 app.config.js 的 插件数组 :

app.json

{
  "expo": {
    "plugins": [
      [
        "jpush-expo-config-plugin",
        {
          "appKey": "你的极光推送AppKey",
          "channel": "你的极光推送Channel"
        }
      ]
    ]
  }
}

接下来, 按照 "添加自定义 Native 代码" 指南中的描述重新构建应用程序

expo prebuild

Package Sidebar

Install

npm i jpush-expo-config-plugin

Weekly Downloads

6

Version

0.0.6

License

MIT

Unpacked Size

18.3 kB

Total Files

5

Last publish

Collaborators

  • runomeow