Skip to content
Mobile Apps

React Native Tutorial: Mobile Apps with React

React Native lets you build real native mobile apps for Android and iOS using JavaScript or TypeScript and React. Your components render to native UI elements, so apps look and feel native. The easiest way to start is with Expo: run npx create-expo-app@latest, then preview the app on your phone. It is a strong choice for teams that already know React.

Hero: code editor with React Native code on a widescreen monitor, dark theme
Quick answer

React Native lets you build real native mobile apps for Android and iOS using JavaScript or TypeScript and React. Your components render to native UI elements, so apps look and feel native. The easiest way to start is with Expo: run npx create-expo-app@latest, then preview the app on your phone. It is a strong choice for teams that already know React.

How React Native works

You write React components using core components such as View, Text, Image and ScrollView. React Native renders them as native platform views. Its modern architecture improves performance and communication between JavaScript and native code.

Start a React Native app with Expo

01

Install Node.js

Use a current LTS version.

02

Create the app

Run npx create-expo-app@latest my-app.

03

Start the dev server

Run npx expo start.

04

Open on your phone

Scan the QR code with the Expo Go app, or use an emulator.

import { useState } from 'react';
import { View, Text, Pressable, StyleSheet } from 'react-native';

export default function App() {
  const [count, setCount] = useState(0);
  return (
    <View style={styles.box}>
      <Text style={styles.title}>Hello, mobile!</Text>
      <Pressable onPress={() => setCount(count + 1)}>
        <Text>Tapped {count} times</Text>
      </Pressable>
    </View>
  );
}
const styles = StyleSheet.create({ box: { flex: 1, alignItems: 'center', justifyContent: 'center' }, title: { fontSize: 24 } });

React Native vs native development

React NativeNative (Kotlin / Swift)
CodebaseOne shared codebaseSeparate apps per platform
SkillsJavaScript/TypeScript and ReactKotlin and Swift
PerformanceVery good for most appsBest for heavy graphics and complex device features
Speed to marketFaster for two platformsSlower, more specialised teams

Compare cross-platform options in Flutter vs React Native and learn React first with our React tutorial.

Core components you will use every day

ComponentWhat it does
ViewA container, similar to a div
TextAll text must be inside one
PressableButtons and anything that can be tapped
TextInputForm fields
FlatListLong lists that only draw what is near the screen
ImageLocal and remote pictures

Styles look like CSS but are JavaScript objects. Layout uses Flexbox, and the default direction is a column.

A small example

import { useState } from "react";
import { View, Text, Pressable } from "react-native";

export default function Counter() {
  const [count, setCount] = useState(0);
  return (
    <View style={{ padding: 24, gap: 12 }}>
      <Text>Tapped {count} times</Text>
      <Pressable accessibilityRole="button" onPress={() => setCount(count + 1)}>
        <Text>Tap me</Text>
      </Pressable>
    </View>
  );
}

What transfers from React, and what does not

Common problems

New to React? Start with our React guide, then compare Flutter vs React Native.

Keep learning

More in Mobile Apps

Android

To build Android apps, install Android Studio (Google’s official IDE), learn Kotlin — Google’s preferred language for Android, though Java…

iOS

To build iPhone apps you need a Mac with Xcode, Apple’s free IDE. Learn Swift and build interfaces with SwiftUI,…

Flutter

Flutter is Google’s open-source UI toolkit for building apps for Android, iOS, web and desktop from a single codebase. Apps…

Latest articles

Related Mobile Apps articles

FAQ

React Native questions, answered

Short, honest answers to the questions people ask most about this topic.

Is React Native good for beginners?

It is a natural choice if you already know JavaScript and React. Expo makes setup and testing on real devices simple.

Expo is a framework and set of tools for React Native that simplifies project setup, development, building and publishing apps.

For most business and consumer apps, performance is very close to native. Graphics-heavy apps and games may still benefit from fully native code.

You can reuse logic, data-fetching code and React knowledge, but the UI uses native components instead of HTML and CSS.

Next step

Keep building your skills

Explore the rest of our Mobile Apps guides, or follow the beginner path step by step.