Skip to content

Commit bf1c7f2

Browse files
committed
Minor tweaks
1 parent ab39346 commit bf1c7f2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/stack-navigator.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ header: ({ scene, previous, navigation }) => {
101101
};
102102
```
103103

104-
When using a custom header, it's recommended set the `headerMode` prop on the navigator to `screen`. You should also specify a height in `headerStyle` to avoid glitches:
104+
By default, there is one floating header which renders headers for multiple screens on iOS. These headers include animations to smoothly switch to one another. When using a custom header, it's recommended set the `headerMode` prop on the navigator to `screen` so that you don't have to implement animations.
105+
106+
You should also specify a height in `headerStyle` to avoid glitches:
105107

106108
```js
107109
headerStyle: {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ header: ({ scene, previous, navigation }) => {
103103
};
104104
```
105105

106-
When using a custom header, it's recommended set the `headerMode` option on the navigator to `screen`. You should also specify a height in `headerStyle` to avoid glitches:
106+
By default, there is one floating header which renders headers for multiple screens on iOS. These headers include animations to smoothly switch to one another. When using a custom header, it's recommended set the `headerMode` option on the navigator to `screen` so that you don't have to implement animations.
107107

108108
```js
109109
headerStyle: {

0 commit comments

Comments
 (0)