React Native course Β· Module 1: Your first app

Welcome to Atlantis - The World of Mobile Apps!

3 min read Β·
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:

  1. Simplifies setup - you don't need to configure Xcode or Android Studio
  2. Provides ready APIs - camera, location, notifications
  3. Offers Expo Go - an app for testing without building
  4. 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

  1. Node.js (v18 or newer)

    node --version  # Should show v18.x.x or newer
  2. Code editor - VS Code with extensions:

    • ES7+ React/Redux/React-Native snippets
    • React Native Tools
    • Expo Tools
  3. 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 --version

Are 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. 1. React Native is a framework that allows you to build:

  2. 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:

  1. QuestionQuiz: What is React Native?
  2. QuestionQuiz: What is Expo?
  3. Put in orderSort: Steps to create an Expo project

Useful articles