Skip to content

Commit 9315dbe

Browse files
authored
Revert "Fix some missing defaultNavigationOptions documentation"
1 parent f8014ca commit 9315dbe

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

docs/bottom-tab-navigator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const TabScreens = createBottomTabNavigator(
7070
```
7171

7272

73-
## `defaultNavigationOptions` for screens inside of the navigator
73+
## `navigationOptions` for screens inside of the navigator
7474

7575
#### `title`
7676

docs/material-bottom-tab-navigator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default createMaterialBottomTabNavigator({
5454
});
5555
```
5656

57-
## `defaultNavigationOptions` for screens inside of the navigator
57+
## `navigationOptions` for screens inside of the navigator
5858

5959
#### `title`
6060

docs/material-top-tab-navigator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ tabBarOptions: {
5959
}
6060
```
6161

62-
## `defaultNavigationOptions` for screens inside of the navigator
62+
## `navigationOptions` for screens inside of the navigator
6363

6464
#### `title`
6565

docs/stack-navigator.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ createStackNavigator({
3030
path: 'people/:name',
3131
// The action and route params are extracted from the path.
3232

33-
// Optional: Override the `defaultNavigationOptions` for the screen
34-
defaultNavigationOptions: ({ navigation }) => ({
33+
// Optional: Override the `navigationOptions` for the screen
34+
navigationOptions: ({ navigation }) => ({
3535
title: `${navigation.state.params.name}'s Profile'`,
3636
}),
3737
},
@@ -47,7 +47,7 @@ Options for the router:
4747
* `initialRouteName` - Sets the default screen of the stack. Must match one of the keys in route configs.
4848
* `initialRouteParams` - The params for the initial route
4949
* `initialRouteKey` - Optional identifier of the initial route
50-
* `defaultNavigationOptions` - Default navigation options to use for screens
50+
* `navigationOptions` - Default navigation options to use for screens
5151
* `paths` - A mapping of overrides for the paths set in the route configs
5252

5353
Visual options:
@@ -78,7 +78,7 @@ https://github.com/react-navigation/react-navigation/blob/master/flow/react-navi
7878
* `onTransitionEnd` - Function to be invoked once the card transition animation completes.
7979
* `transparentCard` - *Experimental* - Prop to keep all cards in the stack visible and add a transparent background instead of a white one. This is useful to implement things like modal dialogs where the previous scene should still be visible underneath the current one.
8080

81-
### `defaultNavigationOptions` for screens inside of the navigator
81+
### `navigationOptions` for screens inside of the navigator
8282

8383
#### `title`
8484

@@ -108,14 +108,14 @@ Title string used by the back button on iOS, or `null` to disable label. Default
108108
StackNavigator({
109109
A: {
110110
screen: AScreen,
111-
defaultNavigationOptions: () => ({
111+
navigationOptions: () => ({
112112
title: `A`,
113113
headerBackTitle: null
114114
}),
115115
},
116116
B: {
117117
screen: BScreen,
118-
defaultNavigationOptions: () => ({
118+
navigationOptions: () => ({
119119
title: `B`,
120120
}),
121121
}
@@ -130,15 +130,15 @@ Title string used by the back button when `headerBackTitle` doesn't fit on the s
130130
StackNavigator({
131131
A: {
132132
screen: AScreen,
133-
defaultNavigationOptions: () => ({
133+
navigationOptions: () => ({
134134
title: `A`,
135135
headerBackTitle: 'A much too long text for back button from B to A',
136136
headerTruncatedBackTitle: `to A`
137137
}),
138138
},
139139
B: {
140140
screen: BScreen,
141-
defaultNavigationOptions: () => ({
141+
navigationOptions: () => ({
142142
title: `B`,
143143
}),
144144
}
@@ -261,7 +261,7 @@ const ModalNavigator = createStackNavigator(
261261
{
262262
headerMode: 'none',
263263
mode: 'modal',
264-
defaultNavigationOptions: {
264+
navigationOptions: {
265265
gesturesEnabled: false,
266266
},
267267
transitionConfig: () => ({

docs/tab-navigator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ tabBarOptions: {
9292
}
9393
```
9494

95-
## `defaultNavigationOptions` for screens inside of the navigator
95+
## `navigationOptions` for screens inside of the navigator
9696

9797
#### `title`
9898

website/blog/2018-11-01-react-navigation-3.0-rc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ import { createBrowserApp, Link } from "@react-navigation/web";
180180

181181
class Home extends React.Component {
182182
static path = "";
183-
static navigationOptions = {
183+
static navationOptions = {
184184
title: "Home",
185185
};
186186
render () {

0 commit comments

Comments
 (0)