Mobile development

Stage 2 of 7 · 10 lessons · ~3 months

React and React Native components

Build screens the way your platform expects: small composable pieces, layout, lists, images, forms and theming. The aim is to turn a design into a screen that looks right on a small phone and a large one.

Start: Components, props and JSX

Lessons· one lesson for each topic, in this order

  1. 1Components, props and JSX
  2. 2Expo Go, development builds and Fast Refresh
  3. 3View, Text, Image, Pressable and ScrollView
  4. 4Flexbox layout
  5. 5Safe areas and screen sizes
  6. 6State with useState
  7. 7FlatList for long lists
  8. 8TextInput, forms and the keyboard
  9. 9Styling, theming and dark mode
  10. 10Platform differences and design guidelinesOptional

Start with· follow one of these

  • GuideFree
    Expo Documentation

    Expo

    The Expo tutorial builds a small app you run on your own phone

  • GuideFree
    React Documentation

    Meta

    "Describing the UI" and "Adding interactivity" cover the React you need

Practise

  • Use a free challenge's mobile design image as the spec for a native screen

Keep handy

Before moving on: Rebuild three screens from a real app you use (a login, a list with images and a detail page) so they adapt to a small and a large phone and support dark mode.

Tauseef's advice
Start with Expo, not a bare React Native project, so you build screens on day one instead of fighting Gradle and CocoaPods. Learn React components, props and state properly here; that is most of the job.

Mark this stage as not done?