@@ -19,7 +19,7 @@ The `replace` action allows to replace a route in the navigation state. It takes
1919<samp id =" stack-actions " >
2020
2121``` js
22- import { StackActions } from ' @react-navigation/routers ' ;
22+ import { StackActions } from ' @react-navigation/native ' ;
2323
2424navigation .dispatch (
2525 CommonActions .replace (' Profile' , {
@@ -33,7 +33,7 @@ If you want to replace a particular route, you can add a `source` property refer
3333<samp id =" stack-actions " >
3434
3535``` js
36- import { StackActions } from ' @react-navigation/routers ' ;
36+ import { StackActions } from ' @react-navigation/native ' ;
3737
3838navigation .dispatch ({
3939 ... CommonActions .replace (' Profile' , {
@@ -55,7 +55,7 @@ The `push` action adds a route on top of the stack and navigates forward to it.
5555<samp id =" stack-actions " >
5656
5757``` js
58- import { StackActions } from ' @react-navigation/routers ' ;
58+ import { StackActions } from ' @react-navigation/native ' ;
5959
6060const pushAction = StackActions .push (' Profile' , { user: ' Wojtek' });
6161
@@ -69,7 +69,7 @@ The `pop` action takes you back to a previous screen in the stack. It takes one
6969<samp id =" stack-actions " >
7070
7171``` js
72- import { StackActions } from ' @react-navigation/routers ' ;
72+ import { StackActions } from ' @react-navigation/native ' ;
7373
7474const popAction = StackActions .pop (1 );
7575
@@ -83,7 +83,7 @@ The `popToTop` action takes you back to the first screen in the stack, dismissin
8383<samp id =" stack-actions " >
8484
8585``` js
86- import { StackActions } from ' @react-navigation/routers ' ;
86+ import { StackActions } from ' @react-navigation/native ' ;
8787
8888navigation .dispatch (StackActions .popToTop ());
8989```
0 commit comments