This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.

原生项目升级助手

编辑页面

查看将原生项目升级到下一个 Expo SDK 版本所需的所有更改的逐文件差异。


If you manage your native projects (android and ios directories), to 升级到最新的 Expo SDK, you have to make changes to your native projects. It can be a complex process to find which native file changes and what to update in which file.

以下指南提供了用于比较你项目当前 SDK 版本和你想升级到的目标 SDK 版本之间原生项目文件差异的 diff。你可以根据项目所使用的 expo 包版本,使用它们对项目进行修改。本页中的工具与 React Native Upgrade Helper 类似。不过,它们是围绕使用 Expo 模块及相关工具链的项目设计的。

升级原生项目文件

一旦你升级了 Expo SDK 版本和相关依赖,请使用下面的 diff 工具了解你需要对原生项目做出的更改,并使其与当前 Expo SDK 版本保持一致。

选择你的起始 SDK 版本目标 SDK 版本以查看生成的 diff。然后,通过复制粘贴或手动修改项目文件,将这些更改应用到你的原生项目中。

From SDK version:

To SDK version:

Native code changes from SDK 56 to 57

Upgrading with an AI agent?

Copy a ready-to-run prompt with the full diff and apply instructions, then paste it into your AI assistant to update your native projects configuration.

package.json
MODIFIED
22 "name": "expo-template-bare-minimum",
33 "description": "This bare project template includes a minimal setup for using unimodules with React Native.",
44 "license": "0BSD",
5 "version": "56.0.26",
5 "version": "57.0.3",
66 "main": "index.js",
77 "scripts": {
88 "start": "expo start --dev-client",
1111 "web": "expo start --web"
1212 },
1313 "dependencies": {
14 "expo": "~56.0.12",
15 "expo-status-bar": "~56.0.4",
14 "expo": "~57.0.1",
15 "expo-status-bar": "~57.0.0",
1616 "react": "19.2.3",
17 "react-native": "0.85.3"
17 "react-native": "0.86.0"
1818 },
1919 "publishConfig": {
2020 "executableFiles": [
2121