EAS 更新

EAS Update 简介,它是使用 expo-updates 库的项目的托管服务。


EAS 更新是一项托管服务,为使用 expo-updates 库的项目提供更新。

¥EAS Update is a hosted service that serves updates for projects using the expo-updates library.

EAS 更新可以在应用商店提交之间快速修复小错误并推送快速修复。它通过允许应用无线更新其自己的非原生部分(例如 JS、样式和图片)来实现这一点。

¥EAS Update makes fixing small bugs and pushing quick fixes a snap in between app store submissions. It accomplishes this by enabling an app to update its own non-native pieces (such as JS, styling, and images) over-the-air.

所有包含 expo-updates 库的应用都能够接收更新。

¥All apps that include the expo-updates library have the ability to receive updates.

  • 要开始使用 EAS 更新,请继续阅读 入门 指南。

    ¥To start using EAS Update, continue to the Getting Started guide.

  • 有关将 EAS Update 与其他 EAS 服务一起使用的完整教程,请参阅 EAS 教程

    ¥For a complete tutorial of using EAS Update with other EAS services, refer to the EAS Tutorial.

用于更新管理的 JS API

¥JS API for update management

更新 JavaScript API 包含一个名为 useUpdates() 的 React hook。此钩子提供有关当前正在运行的更新以及任何可用或已下载的新更新的详细信息。此外,你可以查看更新过程中遇到的任何错误,以帮助你在应用尝试更新时调试任何问题。

¥The updates JavaScript API includes a React hook called useUpdates(). This hook provides detailed information about the currently running update and any new updates that are available or have been downloaded. In addition, you can view any errors that were encountered during the update process to help you debug any issues while the app is attempting to update.

API 还提供了 checkForUpdateAsync()fetchUpdateAsync() 等方法,允许你控制应用何时检查和下载更新。

¥The API also provides methods such as checkForUpdateAsync() and fetchUpdateAsync() which allows you to control when your app checks for and downloads updates.

洞察跟踪

¥Insight tracking

你将获得一个 部署仪表板,它可以帮助你直观地看到哪些更新正在发送到构建。更新与 insights 协同工作,提供有关用户更新采用率的数据。

¥You'll get a deployments dashboard that helps visualize which updates are being sent to builds. Updates work in concert with insights to provide data on the adoption rates of your updates with your users.

请求标头

¥Republish for reverting mistakes

如果更新未按预期执行,你可以在有问题的版本之上 republish 上一个稳定的版本,就像版本控制系统中的新 "commit" 一样。

¥If an update isn't performing as expected, you can republish a previous, stable version on top of the problematic one, much like a new "commit" in version control systems.

开始使用

¥Get started

开始使用 EAS 更新

了解如何开始在项目中配置和使用 EAS Update 所需的设置。

发布更新

了解如何使用 EAS Update 将更新发布到特定分支。

预览更新

使用 EAS 更新查看队友的更改。

使用 GitHub 操作

提交后使用 QR 码发布更新和预览。

从 CodePush 迁移

了解如何从 CodePush 迁移到 EAS Update。