Skip to content

Commit 4564d67

Browse files
sbuggayfacebook-github-bot
authored andcommitted
Fix hardcoded notch marginTop in RNTester (#55132)
Summary: RNTester doesnt use safe areas and instead hardcodes the margin top based on Platform.OS. Issue is that AppleTV returns `ios` so there is a gap since there is no notch. Instead of adding a new Metro platform, just using the deviceIdiom instead for now. Changelog: [internal] Reviewed By: Abbondanzo Differential Revision: D90514023
1 parent c32d01f commit 4564d67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/rn-tester/js/components/RNTTitleBar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const styles = StyleSheet.create({
9898
header: {
9999
height: 40,
100100
flexDirection: 'row',
101-
marginTop: Platform.OS === 'ios' ? 50 : 0,
101+
marginTop: Platform.OS === 'ios' && !Platform.isTV ? 50 : 0,
102102
},
103103
headerCenter: {
104104
flex: 1,

0 commit comments

Comments
 (0)