0.0.6 • Published 1 year ago

@mankin/expo-mods-jpush v0.0.6

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

expo-mods-jpush

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

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

1. 安装

首先通过 expo install 或者 pnpm/yarn/npm 等包管理工具安装本依赖。

npm install -D @mankin/expo-mods-jpush

注意:如果项目里没有 jpush-react-native、jcore-react-native, 需要安装

npm install jpush-react-native jcore-react-native

2. 配置

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

app.json

{
  "expo": {
    "plugins": [
      [
        "@mankin/expo-mods-jpush",
        {
          "appKey": "你的极光推送 AppKey",
          "channel": "你的极光推送 Channel"
        }
      ]
    ]
  }
}

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

expo prebuild
0.0.5

1 year ago

0.0.6

1 year ago

0.0.4

1 year ago

0.0.2-1

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago