Skip to content

Commit 86d7b23

Browse files
committed
Merge pull request #16 from johannhof/master
Add missing documentation for titleProps
2 parents 4384a06 + 98f2c65 commit 86d7b23

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ The **`this.props.toRoute()`** callback prop takes one parameter (a JavaScript o
108108
- `hideNavigationBar`: If set to a truthy value will hide the navigationbar out of view, and move the component so that it is at the top of the screen.
109109
- `leftCornerProps`: If you set a `leftCorner` component you can use this property to pass props to that component.
110110
- `rightCornerProps`: If you set a `rightCorner` component you can use this property to pass props to that component.
111+
- `titleProps`: If you set a `titleComponent` you can use this property to pass props to that component.
111112
- `sceneConfig`: Control the animation of the route being switched. Possible values are:
112113
- Navigator.SceneConfigs.FadeAndroid
113114
- Navigator.SceneConfigs.FloatFromBottom
@@ -119,15 +120,15 @@ The **`this.props.toRoute()`** callback prop takes one parameter (a JavaScript o
119120
- Navigator.SceneConfigs.VerticalDownSwipeJump
120121
- Navigator.SceneConfigs.VerticalUpSwipeJump
121122

122-
The **`this.props.replaceRoute`** takes in an object that can contain the same keys as `toRoute()`. The difference is that instead of adding a route to your stack, it replaces the route
123+
The **`this.props.replaceRoute`** function takes in an object that can contain the same keys as `toRoute()`. The difference is that instead of adding a route to your stack, it replaces the route
123124
that you're on with the new route that you pass it.
124125
- This is useful for login or signup screens. If you don't want your user to be able to navigate back to it, then use `replaceRoute()` rather than `toRoute()`.
125126

126-
The **`this.props.resetToRoute`** takes in an object that can contain the same keys as `toRoute()`. The difference is that instead of adding a route to your stack, it replaces the route
127+
The **`this.props.resetToRoute`** function takes in an object that can contain the same keys as `toRoute()`. The difference is that instead of adding a route to your stack, it replaces the route
127128
that you're on with the new route that you pass it, and empties the navigation stack as well.
128129
- This is useful for going to an application after a login or signup screens. If you don't want your user to be able to navigate back to it, then use `resetToRoute()` rather than `replaceRoute()`.
129130

130-
The **`this.props.setRightProps`** and **`this.props.setLeftProps`** take in an object of props and sends that to your navbar's `RightComponent` and `LeftComponent`.
131+
The functions **`this.props.setRightProps`**, **`this.props.setLeftProps`** and **`this.props.setTitleProps`** take in an object of props and sends that to your navbar's `RightComponent`, `LeftComponent` or `TitleComponent`, respectively.
131132
- This allows you to talk directly to your navbar, because previously you could only talk to it when navigating forward or backward.
132133

133134

0 commit comments

Comments
 (0)