Components, layout and platform differences · core
Styling and iOS vs Android differences
React Native styles are plain JS objects with no cascade, no selectors and unitless density-independent pixels, and the same style can look different on iOS and Android, so you handle platform gaps with Platform.select, .ios/.android files and testing on both platforms.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- No cascade: only a nested Text inherits text styles from its parent Text. Units are density-independent pixels (dp), not px or rem.
- StyleSheet.create keeps style objects stable and validated. Use StyleSheet.absoluteFill; StyleSheet.absoluteFillObject was removed in 0.85.
- Shadows: iOS used shadowColor/Offset/Opacity/Radius and Android used elevation. Since 0.76 the New Architecture supports cross-platform boxShadow and filter (on iOS, filter supports only brightness and opacity).
- Newer style props on the New Architecture: display: "contents", boxSizing (default "border-box"), mixBlendMode, outline props, position: "static".
- Platform.OS / Platform.select for small differences; Component.ios.tsx and Component.android.tsx files for big ones.
- Real differences you will meet: font rendering and line height, shadows, the Android back button, permissions, notification channels (Android), keyboard behaviour, date pickers, background limits.
- Test on a low-end Android phone: that is where most Indian users are and where jank shows first.
The red pen
Common traps: mistake → fix
Mistake: "React Native supports CSS"
Fix: it supports CSS-like properties as JS objects; no selectors, no cascade, no media queries.
Mistake: "Use StyleSheet.absoluteFillObject"
Fix: removed in 0.85; use StyleSheet.absoluteFill.
Mistake: "elevation or shadow* are the only ways to draw a shadow"
Fix: boxShadow works on both platforms on the New Architecture.
Mistake: "React Native hides platform differences"
Fix: many behaviours differ and must be tested on both.
Easy to hard
Questions interviewers ask, easy to hard
- How is styling in React Native different from CSS on the web?
- How do you draw a shadow that looks the same on both platforms in 2026?
- Platform.select vs .ios.tsx files: when do you use each?
- Tell me three iOS vs Android differences that hit you in production.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.