Expo is a suite of tools for building apps with React Native. It provides great development tools, and services like push notifications and code updates.
RN allows us to build native experiences for iOS and Android. In addition to mobile, you can use React Native to build web sites and desktop apps.
React Native builds upon React, a library that allows you to construct apps with components, and use a HTML-like language extension called JSX to declare the components.
Dependencies and Setup
Works on any Windows, Linux or macOS computer. You will need:
The Expo CLI requires:
To install the Expo CLI, run
npm install --global expo-cli
The Expo development app can be found in the iOS App Store or Google's Play Store.
Create your app
expo init violet (or you can choose a different name than violet), choose managed blank app.
Now enter your app directory with
Run your app
Open the app folder in your code editor.
Start the server with
expo start. The server will start and the web browser will open, or you can go to the URL that the server prints out.
Make sure your phone is on the same wifi, and the home screen of the Expo app should show your app, which you can tap on. Or, you can open the app by scanning the QR code with your phone.
App.js, and see that the text matches on your phone. Try editing the text and saving the file to make sure changes go to your phone.