Expo is an excellent approach to ease the transition for any developer new to React Native mobile application development. Let’s have a look at how to set up React Native on Linux with Expo:
To install Expo’s command line interface (CLI), type the following command in your Ubuntu terminal:
npm install expo-cli --global
The —global flag installs the package on the system as a whole, rather than just in your current project directory.
After successfully installing Expo CLU, it’s time to create an expo project using the CLI. Execute the command below:
expo init PROJECTNAME
When you run this command, the CLI will prompt you to select a template type for your project. Select blank app (minimal dependencies).
To run your project, type the following command in a terminal in your project directory:
expo start
A QR code will appear on your terminal if your project is successful, like shown:
Install the Expo mobile app on your Android or iOS device.
Go to Scan QR Code in the mobile app, and a camera screen will open. Your project will load on your screen after you focus the QR code from Step 3 on the camera. Only a blank white screen will be displayed because this is a simple project.
Quick Links
Legal Stuff