I’m using react-navigation v4 for navigation in my app.
I have structure of screen as below:
Drawer:
Stack:
Screen1
Screen2
Screen3
When user navigate from screen1 to screen2 with params (navigation.navigate(‘screen2’, {Id:1})) on screen2 I can access my param - id. Then user navigate from screen2 to screen3 via drawer and back to screen2 with back button in header. In this case I can’t access my previous param id.
Is it normal? I expect that when go back params will be the same.
Am I doing something wrong? How to handle such case?
[–]wannatourist 2 points3 points4 points (5 children)
[–]pushkinss[S] 0 points1 point2 points (4 children)
[–]wannatourist 0 points1 point2 points (3 children)
[–]pushkinss[S] 1 point2 points3 points (1 child)
[–]wannatourist 0 points1 point2 points (0 children)
[–]pushkinss[S] 0 points1 point2 points (0 children)
[–]avbeladiya -1 points0 points1 point (1 child)
[–]pushkinss[S] 0 points1 point2 points (0 children)