Skip to main content
InterviewHubPRO
Section Overview
Q4

Question 4 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

8%
React Native & Expo (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

How does Styling work in React Native and how does its Flexbox differ from Web CSS?

junior Levelreact-nativeBasic

In Simple Words: Styling is written using JavaScript objects via StyleSheet.create():

  • Default Flex Direction: In React Native, flexDirection defaults to column (vertical mobile layout), whereas on the web it defaults to row!
  • Measurement Units: All dimensions are unit-less numbers representing Density-independent Pixels (dp) on Android or Points on iOS (not px, em, or rem).
  • No CSS cascade; styles are scoped and applied explicitly via style={[styles.base, isActive && styles.active]}.