Skip to content

Commit af39ace

Browse files
committed
Improve the descripton for backBehavior
1 parent 893048e commit af39ace

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ Default options to use for the screens in the navigator.
6161

6262
#### `backBehavior`
6363

64-
This controls how going back in the navigator is handled. This includes when the back button is pressed/back gesture is performed, or `goBack` is called.
64+
This controls what happens when `goBack` is called in the navigator. This includes pressing the device's back button or back gesture on Android.
6565

6666
It supports the following values:
6767

68-
- `firstRoute` - return to the first tab (default)
69-
- `initialRoute` - return to initial tab
70-
- `order` - return to previous tab (in the order they are shown in the tab bar)
71-
- `history` - return to last visited tab
68+
- `firstRoute` - return to the first screen defined in the navigator (default)
69+
- `initialRoute` - return to initial screen passed in `initialRouteName` prop, if not passed, defaults to the first screen
70+
- `order` - return to screen defined before the focused screen
71+
- `history` - return to last visited screen in the navigator; if the same screen is visited multiple times, the older entries are dropped from the history
7272
- `none` - do not handle back button
7373

7474
#### `detachInactiveScreens`

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ Default options to use for the screens in the navigator.
9393

9494
#### `backBehavior`
9595

96-
This controls how going back in the navigator is handled. This includes when the back button is pressed/back gesture is performed, or `goBack` is called.
96+
This controls what happens when `goBack` is called in the navigator. This includes pressing the device's back button or back gesture on Android.
9797

9898
It supports the following values:
9999

100-
- `firstRoute` - return to the first tab (default)
101-
- `initialRoute` - return to initial tab
102-
- `order` - return to previous tab (in the order they are shown in the tab bar)
103-
- `history` - return to last visited tab
100+
- `firstRoute` - return to the first screen defined in the navigator (default)
101+
- `initialRoute` - return to initial screen passed in `initialRouteName` prop, if not passed, defaults to the first screen
102+
- `order` - return to screen defined before the focused screen
103+
- `history` - return to last visited screen in the navigator; if the same screen is visited multiple times, the older entries are dropped from the history
104104
- `none` - do not handle back button
105105

106106
#### `defaultStatus`

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ Default options to use for the screens in the navigator.
6969

7070
#### `backBehavior`
7171

72-
This controls how going back in the navigator is handled. This includes when the back button is pressed/back gesture is performed, or `goBack` is called.
72+
This controls what happens when `goBack` is called in the navigator. This includes pressing the device's back button or back gesture on Android.
7373

7474
It supports the following values:
7575

76-
- `firstRoute` - return to the first tab (default)
77-
- `initialRoute` - return to initial tab
78-
- `order` - return to previous tab (in the order they are shown in the tab bar)
79-
- `history` - return to last visited tab
76+
- `firstRoute` - return to the first screen defined in the navigator (default)
77+
- `initialRoute` - return to initial screen passed in `initialRouteName` prop, if not passed, defaults to the first screen
78+
- `order` - return to screen defined before the focused screen
79+
- `history` - return to last visited screen in the navigator; if the same screen is visited multiple times, the older entries are dropped from the history
8080
- `none` - do not handle back button
8181

8282
#### `shifting`

versioned_docs/version-6.x/material-top-tab-navigator.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ Default options to use for the screens in the navigator.
8383

8484
#### `backBehavior`
8585

86-
This controls how going back in the navigator is handled. This includes when the back button is pressed/back gesture is performed, or `goBack` is called.
86+
This controls what happens when `goBack` is called in the navigator. This includes pressing the device's back button or back gesture on Android.
8787

8888
It supports the following values:
8989

90-
- `firstRoute` - return to the first tab (default)
91-
- `initialRoute` - return to initial tab
92-
- `order` - return to previous tab (in the order they are shown in the tab bar)
93-
- `history` - return to last visited tab
90+
- `firstRoute` - return to the first screen defined in the navigator (default)
91+
- `initialRoute` - return to initial screen passed in `initialRouteName` prop, if not passed, defaults to the first screen
92+
- `order` - return to screen defined before the focused screen
93+
- `history` - return to last visited screen in the navigator; if the same screen is visited multiple times, the older entries are dropped from the history
9494
- `none` - do not handle back button
9595

9696
#### `tabBarPosition`

0 commit comments

Comments
 (0)