Skip to content

Commit 2249bf8

Browse files
committed
Clarify headerBackground with headerStyle
1 parent 01c6965 commit 2249bf8

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

versioned_docs/version-7.x/elements.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,11 +386,19 @@ This is a short-hand for the following styles:
386386
}
387387
```
388388

389-
If the above styles are specified in `headerStyle` along with `headerShadowVisible: false`, then `headerShadowVisible: false` will take precedence.
389+
If any of the above styles are specified in `headerStyle` along with `headerShadowVisible: false`, then the styles in `headerStyle` will take precedence.
390390

391391
#### `headerStyle`
392392

393-
Style object for the header. You can specify a custom background color here, for example.
393+
Style object for the header. You can specify a custom background color here, for example:
394+
395+
```js
396+
{
397+
backgroundColor: 'tomato',
398+
}
399+
```
400+
401+
Note that `headerStyle` won't take effect if you are also using [`headerBackground`](#headerbackground). In that case, you should style the element returned from `headerBackground` instead.
394402

395403
#### `headerTitleStyle`
396404

0 commit comments

Comments
 (0)