mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Fix hardcoded notch marginTop in RNTester (#55132)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55132 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 fbshipit-source-id: 9d41017ccbfd0376a304cae3177d75e67fe14d3f
This commit is contained in:
1 parent
42340dc216
commit
400a3b5916
1 file changed
+1
-1
@@ -98,7 +98,7 @@ const styles = StyleSheet.create({
|
||||
header: {
|
||||
height: 40,
|
||||
flexDirection: 'row',
|
||||
marginTop: Platform.OS === 'ios' ? 50 : 0,
|
||||
marginTop: Platform.OS === 'ios' && !Platform.isTV ? 50 : 0,
|
||||
},
|
||||
headerCenter: {
|
||||
flex: 1,
|
||||
|
||||
Reference in new issue
Block a user