Core components

The building blocks React Native provides in place of HTML: View for containers, Text for every visible string, Pressable for taps, TextInput for input, Image for pictures and ScrollView for short scrolling content. Each renders a real native view, and all text must sit inside a Text.

Minimal example

tsx
<View style={{ padding: 16 }}>
  <Text>Welcome back</Text>
  <Pressable onPress={onContinue}>
    <Text>Continue</Text>
  </Pressable>
</View>

Learn this concept

Lesson 4.1 · React Native screen layout

Used in exercises

Exercise 4.4 · Expo app shell