@appcues/expo-config

中文文档
5.0.1发布于 2026/09/11MITTypeScriptCommonJS零依赖近 30 天下载 3734

Expo module to integrate Appcues push notifications

原始使用文档
文档目录6 节
  1. 🚀 Getting Started
  2. Prerequisites
  3. Usage
  4. 🎬 Examples
  5. 👷 Contributing
  6. 📄 License

Appcues Expo Module

Appcues Expo Module allows you to integrate Appcues push notifications into your Expo app alongside the Appcues React Native Module.

🚀 Getting Started

Prerequisites

  1. Ensure the Appcues React Native Module is installed in your app and the SDK is initialized:

    import * as Appcues from '@appcues/react-native'
    
    await Appcues.setup('APPCUES_ACCOUNT_ID', 'APPCUES_APPLICATION_ID')
    
  2. It is recommended to have configured your Android and iOS push settings in Appcues Studio before configuring push notifications in your app to allow you quickly test your configuration end to end.

  3. Copy your Firebase configuration file into your project and set the path to the file in your app.json file, in the android.googleServicesFile (doc) property:

    {
      "expo": {
        ...
        "android": {
          "googleServicesFile": "./google-services.json",
        }
      }
    }
    

    Note that Appcues iOS push notifications do not use Firebase.

Usage

  1. Install the Appcues expo config plugin
    npm install @appcues/expo-config
    
  2. App @appcues/expo-config to the plugin list in your app.json file:
    {
      "expo": {
        ...
        "plugins": [
          "@appcues/expo-config"
          ...
        ]
      }
    }
    
  3. Test locally with a new development or EAS build:
    npx expo prebuild
    

🎬 Examples

The example directory in this repository contains full example Expo app to providing references for correct installation of the Appcues Expo Module.

👷 Contributing

See the contributing guide to learn how to get set up for development and how to contribute to the project.

📄 License

This project is licensed under the MIT License. See LICENSE for more information.

版本与发布记录

@appcues/expo-config 共发布 10 个版本,首次发布于 2024/05/09;过去 12 个月发布了 1 个版本。

版本发布日期距今
5.0.1latest2026/09/111 个月前
5.0.02025/09/261.1 年前
4.0.12024/11/271.9 年前
4.0.02024/09/182 年前
4.0.0-beta.1next2024/07/262 年前
4.0.0-alpha.52024/05/162 年前

关于 @appcues/expo-config 的常见问题

@appcues/expo-config 是什么?

Expo module to integrate Appcues push notifications

如何安装 @appcues/expo-config?

在项目目录运行 npm install @appcues/expo-config,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:expo(*)、react(*)、react-native(*)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@appcues/expo-config 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@appcues/expo-config 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@appcues/expo-config 可以商用吗?

@appcues/expo-config 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@appcues/expo-config 的下载量有多少?

根据 npm 官方下载统计,@appcues/expo-config 在 2026/10/07 – 2026/11/05 这 30 天内被下载 3,734 次,日均约 124 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@appcues/expo-config 还在维护吗?

最新版本 5.0.1 发布于 2026/09/11(1 个月前);至今共发布 10 个版本,其中过去 12 个月发布了 1 个;首次发布于 2024/05/09。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。