Components, layout and platform differences · mid
Safe areas, edge-to-edge and the keyboard
Modern screens draw under the status bar, notch, gesture bar and keyboard, so you read insets from react-native-safe-area-context and handle the keyboard per screen (KeyboardAvoidingView or react-native-keyboard-controller), especially now that Android 15/16 forces edge-to-edge.
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
- Android 16 (API 36) forces edge-to-edge with no opt-out. RN 0.81 targets API 36; Expo SDK 54+ is always edge-to-edge. Google Play requires target API 36 from 31 Aug 2026.
- React Native's own <SafeAreaView> is deprecated (0.81): it is iOS-only and does not work with Android edge-to-edge. Use react-native-safe-area-context: SafeAreaProvider, useSafeAreaInsets, SafeAreaView with edges.
- Apply insets per screen (header gets the top inset, tab bar gets the bottom), not one global padding. Modals and bottom sheets need insets too.
- KeyboardAvoidingView: set behavior on both platforms (often "padding" on iOS) and keyboardVerticalOffset for headers. 0.86 fixed it on Android 15+ edge-to-edge.
- react-native-keyboard-controller: KeyboardAwareScrollView (bottomOffset), KeyboardStickyView, KeyboardToolbar and an animated keyboard height. RN 0.88 points to KeyboardStickyView as the cross-platform replacement for the deprecated iOS-only InputAccessoryView.
- keyboardShouldPersistTaps on a ScrollView or FlatList: use "handled" so a tap on a search result works while the keyboard is open. The boolean form was removed in 0.87.
- StatusBar backgroundColor and translucent were removed in 0.87 because edge-to-edge makes them meaningless.
The red pen
Common traps: mistake → fix
Mistake: "paddingTop: 24 for the status bar"
Fix: heights differ per device; read the insets.
Mistake: "RN SafeAreaView is fine"
Fix: deprecated, iOS-only, and broken under Android edge-to-edge.
Mistake: "keyboardShouldPersistTaps={true}"
Fix: the boolean was removed in 0.87; use "handled" or "always".
Mistake: "Nest several KeyboardAvoidingViews to be safe"
Fix: use one per screen with the right offset.
Easy to hard
Questions interviewers ask, easy to hard
- After targeting Android 16, your header slides under the status bar. Why, and what is the fix?
- Is React Native's SafeAreaView still fine?
- The submit button is hidden by the keyboard on Android but not on iOS. How do you fix it on both?
- A user taps a search result but the first tap only closes the keyboard. Fix it.
- How do insets work inside a bottom sheet or modal?
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.