← 返回命令列表

Linux command

expo 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create new project

expo init [project-name]

Start development

expo start

Start on specific

expo start --ios

Build for production

expo build:android

Publish to Expo

expo publish

Log in to

expo login

Install package

expo install [expo-camera]

说明

Expo is a platform for building React Native applications. The CLI provides tools for development, building, and deployment of cross-platform mobile apps. Expo simplifies React Native development with managed workflow, pre-configured native modules, and OTA (over-the-air) updates. The Expo Go app enables testing without native builds. The platform handles iOS and Android builds in the cloud without local toolchains.

参数

init _NAME_
Create new project.
start
Start development server.
build:android/build:ios
Build for platform.
publish
Publish to Expo.
install _PACKAGE_
Install compatible package.
login
Authenticate with Expo.
--help
Display help information.

FAQ

What is the expo command used for?

Expo is a platform for building React Native applications. The CLI provides tools for development, building, and deployment of cross-platform mobile apps. Expo simplifies React Native development with managed workflow, pre-configured native modules, and OTA (over-the-air) updates. The Expo Go app enables testing without native builds. The platform handles iOS and Android builds in the cloud without local toolchains.

How do I run a basic expo example?

Run `expo init [project-name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does init _NAME_ do in expo?

Create new project.