Skip to content

Commit 0c9d26c

Browse files
Merge pull request #29 from sethx/patch-2
Update README.md
2 parents 584f8b5 + 1d234e5 commit 0c9d26c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ The **`this.props.replaceRoute`** takes in an object that can contain the same
116116
that you're on with the new route that you pass it.
117117
- 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()`.
118118

119+
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
120+
that you're on with the new route that you pass it, and empties the navigation stack as well.
121+
- 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()`.
122+
119123
The **`this.props.setRightProps`** and **`this.props.setLeftProps`** take in an object of props and sends that to your navbar's `RightComponent` and `LeftComponent`.
120124
- This allows you to talk directly to your navbar, because previously you could only talk to it when navigating forward or backward.
121125

0 commit comments

Comments
 (0)