Skip to content

Commit 1eaf57a

Browse files
flyingcircleJeremy Hamilton
andauthored
fix Header placement on web (react-native-elements#2716)
Co-authored-by: Jeremy Hamilton <jeremy.hamilton@tekfive.com>
1 parent 3e8b672 commit 1eaf57a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/header/Header.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ const styles = {
196196
alignItems: 'center',
197197
}),
198198
headerSafeView: {
199+
width: '100%',
199200
flexDirection: 'row',
200201
},
201202
centerContainer: {

src/header/__tests__/__snapshots__/Header.js.snap

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ exports[`Header Component should apply values from theme 1`] = `
2929
style={
3030
Object {
3131
"flexDirection": "row",
32+
"width": "100%",
3233
}
3334
}
3435
>
@@ -94,6 +95,7 @@ exports[`Header Component should render center component by passing a config thr
9495
style={
9596
Object {
9697
"flexDirection": "row",
98+
"width": "100%",
9799
}
98100
}
99101
>
@@ -162,6 +164,7 @@ exports[`Header Component should render left component by passing a component th
162164
style={
163165
Object {
164166
"flexDirection": "row",
167+
"width": "100%",
165168
}
166169
}
167170
>
@@ -233,6 +236,7 @@ exports[`Header Component should render left component by passing a config throu
233236
style={
234237
Object {
235238
"flexDirection": "row",
239+
"width": "100%",
236240
}
237241
}
238242
>
@@ -301,6 +305,7 @@ exports[`Header Component should render right component by passing a component t
301305
style={
302306
Object {
303307
"flexDirection": "row",
308+
"width": "100%",
304309
}
305310
}
306311
>
@@ -372,6 +377,7 @@ exports[`Header Component should render right component by passing a config thro
372377
style={
373378
Object {
374379
"flexDirection": "row",
380+
"width": "100%",
375381
}
376382
}
377383
>
@@ -445,6 +451,7 @@ exports[`Header Component should render with backgroundImage 1`] = `
445451
style={
446452
Object {
447453
"flexDirection": "row",
454+
"width": "100%",
448455
}
449456
}
450457
>
@@ -516,6 +523,7 @@ exports[`Header Component should render with backgroundImageStyle 1`] = `
516523
style={
517524
Object {
518525
"flexDirection": "row",
526+
"width": "100%",
519527
}
520528
}
521529
>
@@ -583,6 +591,7 @@ exports[`Header Component should render without issues 1`] = `
583591
style={
584592
Object {
585593
"flexDirection": "row",
594+
"width": "100%",
586595
}
587596
}
588597
>

0 commit comments

Comments
 (0)