Skip to content

Commit

Permalink
Clarify headerBackground with headerStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Nov 28, 2024
1 parent 01c6965 commit 2249bf8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions versioned_docs/version-7.x/elements.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,19 @@ This is a short-hand for the following styles:
}
```

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

#### `headerStyle`

Style object for the header. You can specify a custom background color here, for example.
Style object for the header. You can specify a custom background color here, for example:

```js
{
backgroundColor: 'tomato',
}
```

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.

#### `headerTitleStyle`

Expand Down

0 comments on commit 2249bf8

Please sign in to comment.