Expo is a framework for apps that run natively on Android, iOS and the web. It is the recommended framework for creating React Native projects as it provides a convenient and efficient way to develop React Native applications.
Expo SDK is a set of pre-built native modules and libraries that extend the capabilities of the Expo framework for building React Native applications. The Expo SDK provides various convenient libraries to use in our project such as Constants and Audio.
Expo Go is a mobile app developed by Expo that allows developers to preview and test Expo projects (React Native applications) on real devices without the need for complex setup or app store deployment. It is a convenient tool to test our app directly on your phone as we are developing.
To create an expo project, we use the following command:
# Create a project named my-app
npx create-expo-app my-app
# Navigate to the project directory
cd my-app
npx create-expo-app my-app:
npx is a package runner tool that comes with npm (Node Package Manager). It allows you to run packages without having to install them globally.create-expo-app is a command provided by Expo, a framework and platform for building and deploying universal, native-quality apps for iOS, Android, and the web using JavaScript and React.my-app is the name of the project you are creating. You can replace my-app with any name you prefer for your Expo project.my-app in this case) and sets up a new Expo project inside that directory. It will prompt you to choose a template (such as "blank," "tabs," etc.) and install the necessary dependencies.cd my-app:
cd stands for "change directory." This command is used to navigate to a specific directory in the file system.my-app is the name of the directory you want to navigate into. After running the first command, a directory with this name has been created by Expo.my-app directory. Once you are inside this directory, you can start working on your Expo project.