Skip to content

Commit 78c963e

Browse files
chenhuavonovak
chenhua
authored andcommitted
Update v3.x docs stack-navigator.md for white space and overlap between headerLeft and headerTitle (react-navigation#329)
* Update stack-navigator.md add some information for white space or overlap between headerLeft and headerTitle. * Update stack-navigator.md
1 parent 61f0ffd commit 78c963e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/stack-navigator.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ Customize the style for the container of the `headerRight` component, for exampl
181181

182182
Customize the style for the container of the `headerTitle` component, for example to add padding.
183183

184+
By default, `headerTitleContainerStyle` is with an absolute position style and offsets both `left` and `right`. This may lead to white space or overlap between `headerLeft` and `headerTitle` if a customized `headerLeft` is used. It can be solved by adjusting `left` and `right` style in `headerTitleContainerStyle` and `marginHorizontal` in `headerTitleStyle`.
185+
184186
#### `headerTintColor`
185187

186188
Tint color for the header

website/versioned_docs/version-3.x/stack-navigator.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ Customize the style for the container of the `headerRight` component, for exampl
182182

183183
Customize the style for the container of the `headerTitle` component, for example to add padding.
184184

185+
By default, `headerTitleContainerStyle` is with an absolute position style and offsets both `left` and `right`. This may lead to white space or overlap between `headerLeft` and `headerTitle` if a customized `headerLeft` is used. It can be solved by adjusting `left` and `right` style in `headerTitleContainerStyle` and `marginHorizontal` in `headerTitleStyle`.
186+
185187
#### `headerTintColor`
186188

187189
Tint color for the header

0 commit comments

Comments
 (0)