You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`router.getActionForPathAndParams`: This function receives the key defined for a route in Navigator and params and returns an action which is needed to update the navigation state. In redux language, we need to call this action to navigate to a route.
54
59
55
60
Output of this statement: `Object {type: "Navigation/NAVIGATE", routeName: "home", action: Object}`
56
61
57
62
This is the action that we get for the path 'home'. This becomes the initial route of our navigator.
58
63
59
-
-`router.getStateForAction(homeNavAction)`: : The above step gives us the action for navigating to the initial route, now we have to update the state of the Navigator to actually navigate to the route. So we pass the action and the current state of the navigator to getStateForAction and it returns the new updated state.
64
+
-`router.getStateForAction(homeNavAction)`: The above step gives us the action for navigating to the initial route, now we have to update the state of the Navigator to actually navigate to the route. So we pass the action and the current state of the navigator to getStateForAction and it returns the new updated state.
60
65
61
66
Output of this statement:
62
67
@@ -76,7 +81,7 @@ Run `npm install react-navigation-redux-helpers` or `yarn add react-navigation-r
76
81
```
77
82
78
83
79
-
2. Add React Navigation Redux Middleware to store
84
+
2. Add React Navigation Redux Middleware to store:
0 commit comments