Skip to content

Commit 3ba5180

Browse files
committed
Fix typo
1 parent 7ffeb8d commit 3ba5180

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website/versioned_docs/version-5.x/stack-actions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar_label: StackActions
55
original_id: stack-actions
66
---
77

8-
`StackActions` is an object containing methods for generating actions specific to stack-based navigators. Its methods expand upon the actions available in [`NavigationActions`](navigation-actions.html).
8+
`StackActions` is an object containing methods for generating actions specific to stack-based navigators. Its methods expand upon the actions available in [`CommonActions`](navigation-actions.html).
99

1010
The following actions are supported:
1111

@@ -22,7 +22,7 @@ The `replace` action allows to replace a route in the navigation state. It takes
2222
import { StackActions } from '@react-navigation/native';
2323

2424
navigation.dispatch(
25-
CommonActions.replace('Profile', {
25+
StackActions.replace('Profile', {
2626
user: 'jane',
2727
})
2828
);
@@ -36,7 +36,7 @@ If you want to replace a particular route, you can add a `source` property refer
3636
import { StackActions } from '@react-navigation/native';
3737

3838
navigation.dispatch({
39-
...CommonActions.replace('Profile', {
39+
...StackActions.replace('Profile', {
4040
user: 'jane',
4141
}),
4242
source: route.key,

0 commit comments

Comments
 (0)