创建项目

了解如何创建新的 Expo 项目。


Expo 是一个 React Native 框架,使开发 Android 和 iOS 应用更容易。我们的框架提供基于文件的路由、原生模块的标准库,以及更多功能。Expo 是开源的,并且在 GitHubDiscord 上有活跃的社区。

🌐 Expo is a React Native framework that makes developing Android and iOS apps easier. Our framework provides file-based routing, a standard library of native modules, and much more. Expo is open source with an active community on GitHub and Discord.

我们还提供 Expo 应用服务 (EAS),一套在开发过程的每个步骤中补充 Expo 框架的服务。

🌐 We also make Expo Application Services (EAS), a set of services that complement the Expo framework in each step of the development process.

系统要求

🌐 System requirements

我们建议从 create-expo-app 创建的默认项目开始。默认项目包含示例代码,帮助你快速入门。

🌐 We recommend starting with the default project created by create-expo-app. The default project includes example code to help you get started.

要创建新项目,请运行以下命令:

🌐 To create a new project, run the following command:

Terminal
npx create-expo-app@latest --template default@sdk-55

注意: 在 SDK 55 过渡期间,不带 --template 标志的 create-expo-app@latest 会创建一个 SDK 54 项目。如果你计划在实体设备上使用 Expo Go,请使用 SDK 54 项目。否则,使用 --template default@sdk-55 创建一个 SDK 55 项目。你也可以通过添加 --template 选项 来选择不同的模板。

下一步

🌐 Next step

你有一个项目。现在是时候设置你的开发环境,以便你可以开始开发了。

🌐 You have a project. Now it's time to set up your development environment so that you can start developing.