📜  expo install - Shell-Bash (1)

📅  最后修改于: 2023-12-03 15:14:57.115000             🧑  作者: Mango

Expo Install - Shell/Bash

Expo is a popular development tool for creating cross-platform mobile applications using React Native. In order to get started with Expo, you need to install the Expo CLI (Command Line Interface) on your machine. This can easily be done through the command prompt or terminal using the expo install command in Shell/Bash.

Prerequisites

Before installing Expo, ensure that you have Node.js installed on your machine. If not, download and install it from the official Node.js website: https://nodejs.org.

Installing Expo

To install Expo, open your command prompt or terminal and run the following command:

expo install expo-cli --global

This will install the Expo CLI globally on your machine.

Using Expo

Once you have installed Expo, you can use it to create a new React Native application by running the following command:

expo init my-app

This will create a new directory called my-app with a basic React Native application setup. You can then navigate into this directory and start the application by running:

cd my-app
expo start

This will start the Expo development server and open a browser window with the Expo client. From here, you can preview your application on your mobile device by downloading the Expo client app and scanning the QR code displayed in the browser window.

Conclusion

In conclusion, the Expo CLI makes it easy to get started with mobile application development using React Native. By running expo install in Shell/Bash, you can quickly install the Expo CLI and start building your own cross-platform applications.