Skip to the workspace
Pebellslearn by building
Introduction to React Native  ›  Lesson

What React Native Is

What is React Native? 12 minReact Native lets you write React components in JavaScript while the phone displays real native iOS and Android views.

react native / What React Native Is

Explore each scene at your own pace.

01 · The rule

The rule

What React Native Is

Throughout this course you will build Sprout, a small app that reminds you when each houseplant needs water. It should feel at home on an iPhone and on an Android phone. The obvious route is to write it twice, once in Swift and once in Kotlin. React Native offers another route, and this lesson shows what it actually is.

The rule

Write React in JavaScript; the phone draws real native views.

React Native is a framework from Meta for building mobile apps with React, the same component model used on the web. Instead of HTML elements, you use components such as View, Text and Image. At run time, React Native turns each of those into the platform's own widget: a Text becomes a native text view on iOS and a TextView on Android.

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

export default function App() {
  return (
    <View>
      <Text>Sprout: 3 plants need water today</Text>
    </View>
  );
}

Two pieces run side by side inside the app:

  • Your JavaScript runs in a JavaScript engine (Hermes by default) bundled into the app. It holds your components, state and logic.
  • The native side is the ordinary iOS or Android app shell. It creates the real views, handles touches and talks to the camera, storage and sensors.

React Native connects the two. When your state changes, React works out what should be on screen, and the native side updates the real views to match. There is no browser and no web page involved. That is the key difference from apps that wrap a website.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.