Skip to content

Commit aaf4874

Browse files
committed
Clarify header related options
1 parent edcb215 commit aaf4874

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

versioned_docs/version-6.x/bottom-tab-navigator.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function MyTabBar({ navigation }) {
165165

166166
### Options
167167

168-
The following [options](screen-options.md) can be used to configure the screens in the navigator:
168+
The following [options](screen-options.md) can be used to configure the screens in the navigator. These can be specified under `screenOptions` prop of `Tab.navigator` or `options` prop of `Tab.Screen`.
169169

170170
#### `title`
171171

@@ -323,7 +323,9 @@ Normally, we don't recommend enabling this prop as users don't expect their navi
323323

324324
### Header related options
325325

326-
You can find the list of header related options [here](elements.md#header). In addition to those, the following options are also supported in bottom tabs:
326+
You can find the list of header related options [here](elements.md#header). These [options](screen-options.md) can be specified under `screenOptions` prop of `Tab.navigator` or `options` prop of `Tab.Screen`. You don't have to be using `@react-navigation/elements` directly to use these options, they are just documented in that page.
327+
328+
In addition to those, the following options are also supported in bottom tabs:
327329

328330
#### `header`
329331

versioned_docs/version-6.x/drawer-navigator.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ To use the custom component, we need to pass it in the `drawerContent` prop:
209209

210210
### Options
211211

212-
The following [options](screen-options.md) can be used to configure the screens in the navigator:
212+
The following [options](screen-options.md) can be used to configure the screens in the navigator. These can be specified under `screenOptions` prop of `Drawer.navigator` or `options` prop of `Drawer.Screen`.
213213

214214
#### `title`
215215

@@ -406,7 +406,9 @@ Normally, we don't recommend enabling this prop as users don't expect their navi
406406

407407
### Header related options
408408

409-
You can find the list of header related options [here](elements.md#header). In addition to those, the following options are also supported in drawer:
409+
You can find the list of header related options [here](elements.md#header). These [options](screen-options.md) can be specified under `screenOptions` prop of `Drawer.navigator` or `options` prop of `Drawer.Screen`. You don't have to be using `@react-navigation/elements` directly to use these options, they are just documented in that page.
410+
411+
In addition to those, the following options are also supported in drawer:
410412

411413
#### `header`
412414

versioned_docs/version-6.x/stack-navigator.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ If `false`, the keyboard will NOT automatically dismiss when navigating to a new
7575

7676
### Options
7777

78-
The following [options](screen-options.md) can be used to configure the screens in the navigator:
78+
The following [options](screen-options.md) can be used to configure the screens in the navigator. These can be specified under `screenOptions` prop of `Stack.navigator` or `options` prop of `Stack.Screen`.
7979

8080
#### `title`
8181

@@ -180,7 +180,9 @@ Boolean used to indicate whether to detach the previous screen from the view hie
180180

181181
### Header related options
182182

183-
You can find the list of header related options [here](elements.md#header). In addition to those, the following options are also supported in stack:
183+
You can find the list of header related options [here](elements.md#header). These [options](screen-options.md) can be specified under `screenOptions` prop of `Stack.navigator` or `options` prop of `Stack.Screen`. You don't have to be using `@react-navigation/elements` directly to use these options, they are just documented in that page.
184+
185+
In addition to those, the following options are also supported in stack:
184186

185187
#### `header`
186188

0 commit comments

Comments
 (0)