Skip to main content
InterviewHubPRO
Section Overview
Q9

Question 9 of 50

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

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

What is `Dimensions` vs `useWindowDimensions` hook?

junior Levelreact-nativeBasic

In Simple Words:

  • Dimensions.get('window'): Returns initial screen width and height. Static: Does not update if screen rotates or folds!
  • useWindowDimensions(): React hook that automatically updates and triggers re-render whenever screen dimensions change (e.g. device rotation, split-screen multitasking, folding phones).