Skip to content

Commit 9ceffe6

Browse files
lfkwtzvonovak
authored andcommitted
Remove required flag from Replace action (react-navigation#212)
1 parent 76dc88d commit 9ceffe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/stack-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ this.props.navigation.dispatch(resetAction);
5555

5656
The `replace` action replaces the route at the given key with another route.
5757

58-
* `key` - _string_ - required - Key of the route to replace.
58+
* `key` - _string_ - Key of the route to replace. If this is not defined, the most recent route will be replaced.
5959
* `newKey` - _string_ - Key to use for the replacement route. Generated automatically if not provided.
6060
* `routeName` - _string_ - `routeName` to use for replacement route.
6161
* `params` - _object_ - Parameters to pass in to the replacement route.

0 commit comments

Comments
 (0)