React Native course Β· Module 1: Your first app
Welcome to Atlantis - The World of Mobile Apps!
In this lesson5
Welcome to the sunken Atlantis! I am Poseidon, ruler of this underwater world of mobile technologies. I am glad you have decided to dive into the depths of React Native and Expo!
What Awaits You in Atlantis?
On this journey through the underwater city, you will learn to create mobile applications that work on both iOS and Android - from a single codebase! Here is what you will discover:
- React Native - a framework for building native mobile applications
- Expo - a platform that accelerates mobile development
- Navigation - moving between screens
- Data Storage - local and cloud
- Multimedia - camera, gallery, sound
- Maps and Location - GPS, maps, geofencing
- Notifications - push and local
- Publishing - App Store and Google Play
What is React Native?
React Native is a framework created by Meta (formerly Facebook) that allows you to build real native applications using JavaScript and React.
Native vs Hybrid vs React Native
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β MOBILE APPLICATIONS β
βββββββββββββββββββ¬ββββββββββββββββββ¬ββββββββββββββββββββββββββ€
β NATIVE β HYBRID β REACT NATIVE β
βββββββββββββββββββΌββββββββββββββββββΌββββββββββββββββββββββββββ€
β Swift/Kotlin β HTML/CSS/JS β JavaScript + Native β
β Best β Average β Close to native β
β performance β performance β performance β
β β β β
β 2 separate β 1 codebase β 1 codebase for β
β codebases β for all β iOS + Android β
β β (WebView) β (Native components) β
βββββββββββββββββββΌββββββββββββββββββΌββββββββββββββββββββββββββ€
β iOS: Swift β Ionic, Cordova β React Native, Expo β
β Android: Kotlin β PhoneGap β β
βββββββββββββββββββ΄ββββββββββββββββββ΄ββββββββββββββββββββββββββReact Native renders native components - not WebView like hybrid frameworks!
What is Expo?
Expo is a platform built on React Native that:
- Simplifies setup - you don't need to configure Xcode or Android Studio
- Provides ready APIs - camera, location, notifications
- Offers Expo Go - an app for testing without building
- Provides EAS Build - cloud builds
Expo vs "bare" React Native
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β EXPO β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β EXPO SDK β β
β β β’ expo-camera β’ expo-location β β
β β β’ expo-notifications β’ expo-image-picker β β
β β β’ expo-av β’ expo-file-system β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β REACT NATIVE β β
β β β’ View, Text, Image, ScrollView β β
β β β’ StyleSheet, Animated β β
β β β’ Native Modules, Native Components β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β JAVASCRIPT ENGINE β β
β β β’ Hermes (default) β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββApplications Built with React Native
- Facebook - parts of the app
- Instagram - the entire app
- Discord - iOS and Android
- Pinterest - the main app
- Shopify - mobile app
- Bloomberg - financial app
Requirements Before Starting
Tools
Node.js (v18 or newer)
node --version # Should show v18.x.x or newerCode editor - VS Code with extensions:
- ES7+ React/Redux/React-Native snippets
- React Native Tools
- Expo Tools
Phone or emulator:
- Expo Go - app for iOS/Android (easiest!)
- Android Studio Emulator
- iOS Simulator (macOS only)
Installing Expo CLI
# Global installation (optional but useful)
npm install -g expo-cli
# Or use npx (no installation needed)
npx expo --versionAre you ready to dive in? In the next lesson, we will create our first Expo project!
Spotted a mistake in this lesson?
Check yourself
Answer the questions from this lesson. Pick an answer to see right away whether it is correct.
1. React Native is a framework that allows you to build:
2. Expo is a platform that:
Hands-on tasks in the game
- Vertical ordering
Arrange the steps to create a new Expo project in the correct order: