Skip to content

Module 02 · Lesson 04

Layout and touch

Flexbox, safe areas and buttons thumbs can hit.

Build screens7 min
Web habitIn React Native
div / span / pView and Text (all text must be inside Text)
button / onClickPressable with onPress
CSS fileStyleSheet.create, or NativeWind for Tailwind classes
Flex is row by defaultFlex is column by default
  • Make touch targets at least 44×44 points.
  • Wrap screens in SafeAreaView (react-native-safe-area-context) so the notch doesn't cover content.
  • Test on a small phone and a big one before you call a screen done.