Skip to content

Commit 51e769f

Browse files
jacek213brentvatne
authored andcommitted
document resetOnBlur option for Bottom Tab Navigator (react-navigation#372)
* document resetOnBlur option for Bottom Tab Navigator * update docs/bottom-tab-navigator.md
1 parent 9402254 commit 51e769f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/bottom-tab-navigator.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The route configs object is a mapping from route name to a route config, which t
2020
## BottomTabNavigatorConfig
2121

2222
* `initialRouteName` - The routeName for the initial tab route when first loading.
23+
* `resetOnBlur` - Reset the state of any nested navigators when switching away from a screen. Defaults to `false`.
2324
* `order` - Array of routeNames which defines the order of the tabs.
2425
* `paths` - Provide a mapping of routeName to path config, which overrides the paths set in the routeConfigs.
2526
* `backBehavior` - `initialRoute` to return to initial tab, `order` to return to previous tab, `history` to return to last visited tab, or `none`.

website/versioned_docs/version-3.x/bottom-tab-navigator.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ The route configs object is a mapping from route name to a route config, which t
2121
## BottomTabNavigatorConfig
2222

2323
* `initialRouteName` - The routeName for the initial tab route when first loading.
24+
* `resetOnBlur` - Reset the state of any nested navigators when switching away from a screen. Defaults to `false`.
2425
* `order` - Array of routeNames which defines the order of the tabs.
2526
* `paths` - Provide a mapping of routeName to path config, which overrides the paths set in the routeConfigs.
2627
* `backBehavior` - `initialRoute` to return to initial tab, `order` to return to previous tab, `history` to return to last visited tab, or `none`.

0 commit comments

Comments
 (0)